users@glassfish.java.net

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

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Tue, 29 Jul 2008 11:39:27 -0700

Can you use TransactionManager? Otherwise, can you switch to use BMT?

thanks,
-marina

glassfish_at_javadesktop.org wrote:
> 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
>
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net For additional
> commands, e-mail: users-help_at_glassfish.dev.java.net
>