I might need to think about this a little more... but first of all, use a
later release.  I recommend 3.1 == cvs head that you compile yourself since
there have been a few changes and bug fixes in this area.   In particular,
some things changed that I think make what you are doing more likely to
work.

In addition, you _might_ need to set the "unsharable resource" flag in yoru
deployment descriptor for ejb2.

I recommend that you try using UserTransaction in ejb2 since it will handle
the autocommit settings for you behind the scenes.

thanks
david jencks

On 2002.08.01 16:16:45 -0400 Ken Whitaker wrote:
> Using JBoss 3.0 release.
> 
> I have two session beans: one that is very simple, but
> has some basic business logic (EJB1).  
> 
> The second session bean performs a database
> transaction (EJB2).  
> 
> The transaction tag in the descriptor for both beans
> is set to "Bean".  
> 
> We are using Oracle JDBC data source from the using a
> local transaction pool.  We are not using Oracle's XA
> driver yet.
> 
> Because the transaction is handled locally, the
> autoCommit() state for the connection in EJB2 is set
> to false.  During EJB2's database transaction it makes
> a call to EJB1 to get a value.  The call to EJB1 does
> not use the database at all during the call.  BUT,
> when EJB2 returns from the call to EJB1, the
> autoCommit() is set back to true.  Of course, this is
> a problem for the database transaction.
> 
> Am I breaking the rules by calling another ejb method
> during a local database transaction?
> 
> Thanks for any input!
> 
> 
> 
> 
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.yahoo.com
> 
> 
> -------------------------------------------------------
> 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