Snalk

Snalk » Programming Tutorials » Java » Transaction demarcation

Reply
  #1 (permalink)  
Old 10-22-2008, 11:35 AM
Junior Member
 
Join Date: Oct 2008
Posts: 8
Post Transaction demarcation

Transaction demarcation:-

Session beans are the only ones that can programmatically define bean−managed transaction demarcation; they do this with the javax.transaction. The container is aware of the type of demarcation selected because the container is able to read the <transaction−type> element of the <session> tag in the EJB deployment descriptor. The session bean can access UserTransaction objects (by calling getUserTransaction from its SessionContext object), which make available the begin, commit, and rollback methods for the transaction.

With session beans, you may set the <transaction−type> element because session beans have the option of using container−managed transaction−management services. However, the <transaction−type> does not exist for entity beans. Container−managed transaction−management services are provided by the container, and the deployment descriptor has a <container−transaction> element within the <assembly−descriptor> element. The transactions of the methods described in these elements are automatically managed by the container.
Reply With Quote
Reply

Bookmarks

Tags
transaction demarcation

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump



All times are GMT. The time now is 04:09 AM.
Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.