I implemented a transaction hibernate-jta architecture into JBoss 4.2.1 and MySql 5 and with hibernate 3.1.
On a Redhat machine, even with large memory settings on JVM, sometimes the server throws an OutOfMemoryError
So, these are my relevant classes and methods and configuration file.
Finally, this is my Business Class
and this is the datasource configuration on JBoss
Well. On my machine (Windows Vista as OS) works all perfectly and I've not any trouble.
But, on a Redhat machine, sometimes the server goes into OutOfMemoryError