Title: Bean Managed Transaction mgmt in SessionBean
This is correct for stateful session beans. Not for stateless session beans. Transaction begin and commit should happend in same function of the stateless bean.
 
--Ashwani
 
----- Original Message -----
Sent: Tuesday, July 30, 2002 4:19 PM
Subject: Bean Managed Transaction mgmt in SessionBean

Hi!

I have the SessionBean with Bean Managed transaction mgmt with two business methods
for example : getHeader(), getData()
Client should call getHeader(), then call getData()
Can I issue UserTransaction ut = context.getUserTransaction(); ut.begin() in the begining of the first method
and ut.commit() in the end of second method?
Is this correct?
All I want is to prevent passivation of the Bean between these calls!

Thanx in advance,
Kirill Mikhailov

Reply via email to