Kategorien
Java

JSSE 1.0 bug keeps me busy

A bug in JSSE 1.0.3 keeps me busy the whole monday – ending up with migrating from JDK1.2.2 to JDK1.4.2 „out of the cold“. In one of my maintenance project that realize some kind of an online-shop, „we“ use a third-party website for payment. Last friday afternoon they installed a new SSL-certificate. Since then, the…

Kategorien
Java

„Hibernate – A Developers Notebook“ – migrating to Hibernate 3.0, Chapter 3

In chapter 3 (you can read it online) we use the Track table to insert some data and to query data. We use CreateTest to create and QueryTest to query data. Some simple adaptions are necessary: change package name of hibernate classes to org.hibernate replace the use of the all-attributes-as-parameters-constructor with Java-Bean style use of…

Kategorien
Java

„Hibernate – A Developers Notebook“ – migrating to Hibernate 3.0, Chapter 2

This is chapter 2 of rewriting the examples of O’Reillys book „Hibernate – A Developers Notebook“ for using Hibernate 3.0 instead of Hibernate 2.x . To get the context, read chapter 1. The goal of chapter 2 is to write a hbm file for a single table, generating the corresponding java file and compile it.…

Kategorien
Java

„Hibernate – A Developers Notebook“ – migrating to Hibernate 3.0, Chapter 1

In this blog series I want to go through the examples in James Elliotts book „Hibernate – a developers notebook“ using object/relation mapping service Hibernate 3.0 instead of Hibernate 2.x that this book was written about and noting the differences, i.e. what I had to change to get them working. I enjoyed reading „Hibernate -…

Kategorien
Java

Tomcat and syslog and access.log

A colleague of mine asked me how to route logging output of Jakarta Tomcat 5.0 to Unix syslog. This is rather easy since tomcat uses a library called „jakarta commons logging“ which in turn can use „log4j“ which itself can log to Unix Syslog. First, download log4j and commons-logging. Now copy log4j-1.2.x.jar and commons-logging.jar to…

Kategorien
Java

Using a Garbage Collector doesn’t free you from thinking

Using a Garbage Collector doesn’t free you from thinking about references