Transactions can most definitely span more than one method for both bean/container managed transactions. And I believe the UserTansaction can be resolved via a JNDI lookup from all types of beans.
You seem to be confusing Transaction with state. A StatelessSessionBean cannot hold state between client method invocations. For that you need a StatefulSessionBean. William > -----Original Message----- > From: Saurabh Sahai [mailto:[EMAIL PROTECTED]] > Sent: Friday, 12 July 2002 3:50 > To: [EMAIL PROTECTED] > Subject: Re: user transaction > > > In case of stateless session beans, if a transaction has been started > (either by the bean in case of BMT or by the container in > case of CMT), the > transaction must be completed (by the bean or the container > depending on > whether the bean is BMT or CMT) at the end of the method - > this is what is > meant by 'transactions cannot span method calls' > > hope this clarifies it a bit > > -Saurabh > > ----- Original Message ----- > From: "Ramki" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, July 12, 2002 3:44 PM > Subject: Re: user transaction > > > > >> Is it true that the UserTransaction can't be get in stateless > > sesstion > > >> bean and enitity bean. We have to used container managed > transaction > > >> for that. > > >>>> In case of stateless session beans, the only > restriction is that > > transactions cannot span multiple methods. > > > > What does Transaction cannot span multiple methods mean?? Are you > > talking with the case of a User Transaction?In other cases, ie CMT > > Transaction can span multiple methods in Stateless Bean ..right? > > > > Ramki. > > > > > > ============================================================== > ============= > 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".
