Using JBoss 4.0.3 and hibernate 2.1.8 my objects are never added to the second level cache after save. I did some digging and inside JTATransaction.afterCommitRollback() after a successful commit, it gets the status of the transaction and does a
session.afterTransactionCompletion(status==Status.STATUS_COMMITTED);
The status from the UserTransaction always comes back as STATUS_NO_TRANSACTION, not STATUS_COMMITTED so farther down it doesn't get put into the second level cache when it checks the results of the condition above.
Is this a Hibernate bug? JBoss bug? Setup issue? Otherwise transactions and second level cache are working fine. I just noticed new objects were not put into second level cache.
Thanks in advance.
|