i have two methods in a stateless Session Bean which has methods methodA ( Required New ) and methodB( required New ). methodA internally calls methodB. If i remotely invoke methodA, does methodB will create a New Transaction other than the transaction of methodA.
Do i need to create a new instance of the sessionBean within methodA and then call method B to achieve this so that it is a remote invocation ?
thx
Gus
-
Starting a new Transaction (2 messages)
- Posted by: Gurmeet Singh
- Posted on: October 01 2004 09:32 EDT
Threaded Messages (2)
- Starting a new Transaction by Joseph Chan on October 06 2004 22:16 EDT
- Starting a new Transaction by Igor Shindin on October 08 2004 12:11 EDT
-
Starting a new Transaction[ Go to top ]
- Posted by: Joseph Chan
- Posted on: October 06 2004 22:16 EDT
- in response to Gurmeet Singh
You need to create a new instance of the session bean and call method B via the remote interface in order for it to initiate a new transaction. Otherwise the call to an method B is part of method A's transaction as the container does not recognise that it needs to demarcate a new transaction. -
Starting a new Transaction[ Go to top ]
- Posted by: Igor Shindin
- Posted on: October 08 2004 12:11 EDT
- in response to Gurmeet Singh
You have to use remote interface of the methodB to start new transaction