• Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB

 
bimal upadhyay
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do we perform transcation on Ejb .
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not an ORM question. Moving to "EJB and Other J2EE Technologies"...
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJB supports two type of transaction :
1)Bean Managed Transaction - Here the developer takes the responsibility of starting and commiting(rollback)the transaction. The developer needs to call the begin and commit() of the UserTransaction object.

2)Container managed transaction - Container takes care of transaction. Transaction settings are mentioned in the deployment descriptor.

Please read some EJB tutorial/book for more details.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!