I sure this is a very simple question.
I've got a CMT stateless session bean, containing some business logic, this bean would like to use some of our well tested utility code.
One problem, some of this code is attempting to acquire a connection and perform an update operation, it uses the Connection objects commit and rollback.
All methods are marked as transaction required.
What I need to know is there a way of determining whether the current thread's transaction is container-managed.
Any help or references would be much appreciated.
I beleive that if you attempt to call ctx.getUserTransaction from the session bean context and the transaction is container managed that you will get an IllegalStateException.