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

Kategorien
Java

Eclipse: keyboard cycling

This has happened to me several times: when working with eclipse, suddenly my german keyboard layout switched to the standard english keyboard layout. I couldn’t find any Preference-setting in eclipse for keyboard layout switching… Finally, the mystery is explained: de tomKronieken: Eclipse keyboard cycling „de tomKronieken“ found out its „alt-shift“ that switches the layout. and…