This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Bean Managed Transactions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Bean Managed Transactions" Watch "Bean Managed Transactions" New topic
Author

Bean Managed Transactions

Kiran Kumar
Ranch Hand

Joined: May 18, 2001
Posts: 107
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"
Tim Duncan
Ranch Hand

Joined: Aug 20, 2001
Posts: 150
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).]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Bean Managed Transactions
 
Similar Threads
CMP & BMT
Bean Managed Transactions
Container Managed or Bean Managed
Entitybean
Usertransaction and Entity Beans