berthou.com

db2, java, websphere, wordpress, php, linux


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

DB2 Backup Script

A database is very usefull but it’s always important to backup very often your data. To do 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 »

tEuroCalc - Java Calculator

Index

Description


tEuroCalc is a little Calculator/Converter Applet. Its very small size allows an easy use (14 Ko). tEuroCalc runs on all browsers with support JDK 1.1. With this applet you can make all standard operations (”+”, “-”, “/”, “*”, “%”…) and you can convert european devises in Euro.

Download

tEuroCalc.zip

News

Version 2.00

  • Add LiveConnect support for Java<->Javascript communication
  • Add layer sample
  • Add greece devise

Read the rest of this entry »

Description

A few days ago I had a little problem when I tried to deploy in WAS 6.0 (Websphere Application Serveur 6) an application including a PDF signature.
During the execution of the servlet’s signature, I had the following problem :

java.lang.Exception: java.lang.Exception: java.io.IOException:
Error in loading the keystore: Private key decryption error:
(java.lang.SecurityException: Unsupported keysize or algorithm parameters)

Resolution

This error is caused by the JCE libraries used by the virtual java’s machine executing WAS. This JVM is the standard version and it had a limited support of cryptographie’s algorithme. To correct this you just have to substitute two jar files in teh configuration of the JVM IBM (local_policy.jar et US_export_policy.jar).
This files are in the index $JAVA_HOME/jre/lib/security (for exemple /usr/lib/jvm/jre-ibm/lib/security or /opt/IBM/WebSphere/AppServer/java/jre/lib/security).
You can download this non limited librairies http://www-128.ibm.com/developerworks/java/jdk/security/142/ (file unrestrict142.zip)

When the file is download you had to:

  • Decompress the downloaded file
  • Verify that this file contains local_policy.jar et US_export_policy.jar
  • Stop Websphere
  • Save the old files
  • Substitute the two files
  • Take off again WAS

aTicker - applet

Description

aTicker is a simple, free and small Ticker texte scrolling Applet. aTicker runs on all browsers with JDK 1.1x support. (aTicker is free with all source code).
This applet is available in JDK 1.1x


Source HTML

<applet codebase="/jar" archive="applet-aticker.jar" code="com.berthou.applet.aticker.aticker.class" width=220 height=20 mayscript>
	<param name=file value="s">
	<param name=cSep value="§">
	<param name="speed" value="1">
	<param name="delay" value="30">
	<param name="local" value="true">
	<param name="bgcolor" value="13693183">
	<param name="Font1" value="Verdana, 14, 0, 0">
	<param name="Font2" value="Verdana, 14, 1, 1220">
	<param name="s0" value="JavaSide § http://www.javaside.com § _load">
	<param name="s1" value="Mess 2 § javascript:alert('Salut...') § _script § ?PopupJavascript">
	<param name="s2" value="berthou-fr § http://www.berthou.com/fr/ § _load">
	<param name="s3" value="berthou-us § http://www.berthou.com/us/ § _load">
</applet>

Read the rest of this entry »


Web Developement Blogs - Blog Catalog Blog Directory tlmeb