berthou.com

db2, java, websphere, wordpress, php, linux

The probleme

Connexion without user identification
During his installation Websphere is configure to accep all the users identification (wihout passwords) to accede to the administration console.
You can type anything it goes perfectly, there is no verification.
This is of course unacceptable and in the recent versions, a ‘wizard” lead you to activate the global security. But it activates all the J2EE security what is most of the time useless.


The goal of this little article is to explain you (I hope in a clear way) how to securate the access to the WAS administration console without activating the whole J2EE security.
Connexion without verification
Read the rest of this entry »

Description

Usually in software devellopement we use values liste that we take from “properties”, SQL tables or in the worst case, “in hard codding” in our application.

As many people I had this problem ans I solve it by creating “Tables Memories”. It permits me to limit the access to the database (or file), to low the occupation memory by having just one request of these memories liste, and to simplify my code.

This code is quite old and could be improved (use of the patern singleton instead of a full static classe, synchronize optimisation…). I use this in a huge number of project and I always report these modifications because I don’t have any performance or memories problems.

Fonctions

During the cration of this componant I wanted to have the following functions also I simplify in maximum its use in a JSP page or a Servtel :

  • “Connection” sql connection outside bean
  • Do not reload the data if they are already in memory
  • Load of a liste from a select SQL : loadQuery(…)
  • Load of a list from a values liste : loadListe(…)
  • Read of the description associated to a code (String) : getValue(…)
  • Read of the description associated to a code (Combobox) : getListe(…)
  • Read of the description associated to a code (Radio Bouton) : getRadio(…)

Read the rest of this entry »

Web News

If it happens, it would be the biggest buying on the net. Indeed, to counter Google (who gives the impression to bother it), Microsoft announce a buying proposition of Yahoo for 45 milliard dollars.
En fond cours de l'action de Yahoo

I remember you that Yahoo exist since 1994 and the two (ex) student of Stanford (David Filo and Jerry Yang)can be very proud of their project ans of his valorization.

DB2 backup script on Linux

DB2 Backup Script

After my news about DB2 backup script under Windows, I give you in this small article a solution to do the same thing under Linux.

To Backup a database this IBM/DB2 gives you a graphic interface quite simple to use “Control-Center”, but if you want you include this backup in a batch script you must write a backup script without GUI.

In this new I explain how to write a windows script procedure (.bat or .cmd) to backup your DB2 database.

In this sample I considered that you must close your database before backup ( It’s possible to do this in “ONLINE” mode but it’s more complexe — include log file, rollforward…–) and I use a database SAMPLE (it is his name) for this test .

the goal of this scripts is to :

  • Quiesce database (close)
  • Backup your data
  • UnQuiesce database (open)
  • Zip backup file
  • Clean/Delete old backup rows in DB2 catalogue
  • Delete old backup files

Read the rest of this entry »

WWW - XWiki version 1.2

Some news of the web

After three “releases candidates” the final version of the excellent XWiki software is avaible to download.

Xwiki is a Wiki Open Source multilingual, entirely written in Java. It offers all the services of a well securisated Wiki and permit an easy developping of the specifique functions (very useful to integrate this in existing applications). This sort of tools permit to develop quickly an entreprise Intranet by adding quite easyly specifique functions.

This new version offers better performans, New users, groups and rights management UI (I didn’t like the previous one), many pluggins anb many other things to see at this link. ici.

In my opinion I find the first contact very simple and quick. I particulary like the panel interface, the flux reader “Xwiki Watch” which is really very powerful and the exportation in RTF or PDF format.

If you don’t already know this tool I invite you to discover it quicky.


Web Developement Blogs - Blog Catalog Blog Directory tlmeb