Hi Vikram, Thanks for the reply, but as you the transaction in Entity Bean B is Bean Managed Transaction and not Container Managed Transaction, as you mention that it all depends on the trans-attribute of the bean, which I assume is the trans-attribute in the deployment descriptor which in Entity Bean B there is none as it is a Bean Managed Transaction
Correct me if I'm wrong. Thanks Nanik >From: Vikrama Ditya <[EMAIL PROTECTED]> >Reply-To: Vikrama Ditya <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: Transaction question... >Date: Tue, 19 Feb 2002 16:53:53 -0800 > >1 ---> It depends upon trans-attribute of entity bean B, if it is "required >or supported", EJB will execute entity bean B in same transaction of entity >bean A > >2 ---> Assuming entity bean B is not executing in same transaction context >of entity bean B, it will not affect the transaction of entity bean A. This >is because EJB 2.0 does not support nested transactions, it support only >flat. > >Thanks >-- >Vikram > >-----Original Message----- >From: Nanik Tolaram [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, February 19, 2002 4:39 PM >To: [EMAIL PROTECTED] >Subject: Transaction question... > > >Hi Friends, > >I have a question to ask about transaction. > >Here is the scenario... > >Client --> Servlet --> Entity Bean A (Container Managed Transaction and >Container Managed Persistence) --> Bean B (Bean Managed Transaction and >Bean >Managed Persistence) > >I read in the spec EJB 2.0 section 17.6.1 it says > >"...... the Container suspends any transaction that may be associated with >the client ...... (this would happen if the instance......), the container >associates the method execution with this transaction" > >correct me if I'm wrong please, does this mean that, > >1. When Entity Bean A invoke the method on Entity Bean B the transaction >that is currently attached to Entity Bean A is suspended and then it will >resume the transaction again after it return back from Entity Bean B ? > >2. Does the transaction in Entity Bean B affect the transaction in Entity >Bean A ?, what I'm trying to say is if Entity Bean B rolled back for some >reason does this roll back the transaction in Entity Bean A ? > >Thanks for the help and have a nice day > >Cheers >Nanik > > > > > >_________________________________________________________________ >Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. > >=========================================================================== >To unsubscribe, send email to [EMAIL PROTECTED] and include in the body >of the message "signoff EJB-INTEREST". For general help, send email to >[EMAIL PROTECTED] and include in the body of the message "help". > >=========================================================================== >To unsubscribe, send email to [EMAIL PROTECTED] and include in the body >of the message "signoff EJB-INTEREST". For general help, send email to >[EMAIL PROTECTED] and include in the body of the message "help". > _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
