berthou.com

db2, java, websphere, wordpress, php, linux

Archive de la catégorie ‘java

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(…)

(more…)

  • 0 Comments
  • Filed under: OpenSource, java
  • 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.

  • 0 Comments
  • Filed under: OpenSource, java, www

  • After some rumors, Sun announces an agreement to acquire MySql and Oracle announced that it has entered into an agreement to acquire BEA Systems, Inc.

    It will give to Sun a popular database missing from its catalogue and it’s a very good database…

    More informations on this news
    - http://www.mysql.com/news-and-events/
    - http://www.oracle.com/bea/index.html

  • 0 Comments
  • Filed under: java, mysql, www
  • Description

    This news is the following of “How to signing a PDF with Java”


    I continu my research to use certificate available in the MS Windows Keystrore.I wanted to use a certificate stored in a card (use for MS Windows signe on).


    Thanks to these researchs I discovered that with JDK 6 it is very simple to use the MSCAPI’s API .
    (more…)

  • 1 Comment
  • Filed under: java
  • aDraw - Drawing Applet

    Index

    Description

    aDraw is a drawing java applet including a save option with acxImage and jspImage components or a php script. It works on all the navigators supporting the JDK 1.1. With this java applet you can easily include a drawing option in your Internet or Intranet site.

    Download

    aDraw.zip

    News

    Version 2.00

    • Add arrow on lines
    • Add background image
    • Add symbol object…

    (more…)

  • 0 Comments
  • Filed under: applet, java
  • 
    Web Developement Blogs - Blog Catalog Blog Directory tlmeb