Hi,
I'm having troubles using MultipleHiLoPerTableGenerator with Websphere 5 and Hibernate 3.0.5:
I get the following warning:
Quote:
J2CA0075W: An active transaction should be present while processing method allocateMCWrapper.
J2CA0075W: An active transaction should be present while processing method initializeForUOW.
On IBM's page, this error is explained:
http://www-1.ibm.com/support/docview.wss?rs=180&context=SSEQTP&q=J2CA0075W&uid=swg21109248
I then looked into Hibernate's code and found that the MultipleHiLoPerTableGenerator calls
Code:
TransactionHelper.doWorkInNewTransaction()
which suspends the running transaction and starts a new one.
When closing the session, any exception is swallowed there:
Code:
try {
session.getBatcher().closeConnection( conn );
}
catch ( Exception e ) {
//swallow it to put JTA in a proper context
}
Does this mean that I can ignore the warning above? I'm a bit afraid that this will be a proplem with later J2EE versions. Does anybody have more insight into this than I do?
regards,
Stefan