i am having a session bean where i have bean managed transaction. an entity bean with bean managed persistance is also there. i want to update 3 tables, so i am having bean managed persistance for the entity bean. if i pass the database connection got from looking up a datasource as an argument to the create method of the entity bean along with other arguments will i be able to maintain transaction. the code is like UserTransaction ut = context.getUserTransaction(); ut.begin(); UserEntity user = userentityhome.create("name",1234,conn)
Thanks<br /> <br />Kiran <br /> <br />SCEA, SCJP 1.4,<br /> <br />"First they ignore u, then they laugh at u, then they fight u, <br />then u will win<br /> <br />Mahatma Gandhi"
posted 14 years ago
I think you're in the wrong place, try over at J2EE and EJB
[This message has been edited by Tim Duncan (edited November 23, 2001).]