File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Bean Managed Transactions" Watch "Bean Managed Transactions" New topic

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();
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:
subject: Bean Managed Transactions
It's not a secret anymore!