Hy,
I have a Stateless Sessin Bean CMT(trans-atributte= Required) that use a DAO with Hibernate, MBean service in jboss, like persistence layer.
The
hibernate Mbean Service use UserTransaction interface supplied by container.
The following problem ocurred:
When a stand-alone remote client access this Bean and invoke sucessfuly my business method, that use dao objets, in the next time that any method that invoke any dao methods, this last throws a NullPointerException when the hibernate try take a getUserTransaction.
I learned that nested transactions are not suported in EJB. Would be any problem when any method those dao objects, call getUserTransaction inside a EJB CMT?
Thanks for all!
Adilson