On 2003.01.06 05:53:21 -0500 [EMAIL PROTECTED] wrote:
> On Sun, Jan 05, 2003 at 11:32:05PM -0500, David Jencks wrote:
> > inside the jboss vm, if you start a user transaction or container
> managed
> > transaction, any connection obtained in the same thread is enrolled in
> the
> > transaction.
> 
> I suppose it become more complicated in my case. I have one method in a
> bean that use CMP and another that use SQL. The problem occurs when these
> are combined in one thransaction. I have a unit test that start a
> usertransaction and then call both of these. The thread is probably not
> the same then.
> 

The user tx is started in a remote object?
That should still work.  When the call gets to jboss, it should include
info about the tx and the thread should get associated with the tx.  If you
can create a testcase demonstrating what you see that would be helpful.

There are periodically complaints that remote user tx don't really work,
but I haven't been able to reproduce the problems.

> 
> >  This assumes the connection is of a type that supports jta
> > transactions: for jdbc, this means you didn't set up a
> > NoTxConnectionManager.
> 
> How do I set up that? I just get the connection from a datasource from
> jndi.

I never know why people want notx datasources.... but you set it up using
the class org.jboss.resource.connectionmanager.NoTxConnectionManager
instead of ...LocalTxConnectionManager in the appropriate mbean in a
*-service.xml file or as i recall a no-tx-connectionmanager element in a
*-ds.xml file.

david jencks.

> 
> > 
> > david jencks
> > 
> 
> Marius Kotsbak
> Boost communications AS
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to