Monthly Archives: April 2006

Fix for slow linux java remote debugging

If you are using the new linux kernel (2.6.x) and remote debugging is slow, there was a change in the kernel that revealed a bug in the JDK with remote debugging. There is a fix thoug by running this command: … Continue reading

Posted in Java, Linux | Leave a comment

Hibernate collection fetching

Hibernate doesn’t fetch collections within a bean in the same session the beans were created in. If you need objects in those collections later on within that session, you had better put them in there. This even holds true when … Continue reading

Posted in Java, Ruby | 6 Comments

Hibernate updates and MySQL 5.0 InnoDB Max

Something else came up today with all this transaction and MySQL stuff. Looks like Hibernate updates do not work unless the session is participating in a transaction when using MySQL InnoDB Max with the default isolation level set to READ-COMMITTED … Continue reading

Posted in Java | Leave a comment

What Spring does for hibernate transactions

I need to remember this, so I’ll post it. Spring transaction (annotations or proxies) will join the current session, which is associated with the current thread of execution, if there is one or create a new session if there isn’t … Continue reading

Posted in Java | 1 Comment

8 hour mysql debug fest

Tony and I just got done with an 8 hour debug fest of our DB code. This was rather brutal and finally we ended up with a mess of souts (IJ users will know these as System.out.printlns) to track it … Continue reading

Posted in Java | 1 Comment