Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Bean Managed Transactions

 
Kiran Kumar
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
Tim Duncan
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic