users@glassfish.java.net

Re: JTS5041: The resource manager is doing work outside a global transaction

From: <glassfish_at_javadesktop.org>
Date: Tue, 29 Jul 2008 11:34:12 PDT

Yes, this is an invocation of an EJB method that is a CMT. So what your telling me is that it is not allowed to call getUserTransaction of my EJB method is within a CMT. But my EJB uses a Dao to access the database, which uses a data source retrieved from JNDI. You have previously told me that the in order for the data source to be synchronized with the UserTransaction I must make Spring aware of the TransactionManager and UserTransaction. But now you are telling me that Spring cannot use the UserTransaction inside of a CMT.

So how am I suppose to allow the data source to participate in the CMT if I cannot use the UserTransaction? Are you telling me that I cannot use CMT?
[Message sent by forum member 'cmathrusse' (cmathrusse)]

http://forums.java.net/jive/thread.jspa?messageID=290167