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

Is there any relationship between Client-Managed and Bean-Managed demarcation?

 
Mellon Sun
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Spec talks about Client-Managed Demarcation and Container-Managed Demarcation in ejb core 13.2.4 and 13.2.5 respectively. Then spec talks about Bean-Managed Transaction Demarcation and Container-Managed Demarcation in ejb core 13.3.3 and 13.3.4 respectively.

There is two figures Figure 27 (Page 321) and Figure 28
(Page 322) depict the Client-Managed Demarcation and Container-Managed Demarcation. Is these two pictures adapt Bean-Managed Transaction Demarcation and Container-Managed Demarcation in ejb core 13.3.3 and 13.3.4 respectively too?
 
Chandrashekhar Raiphale
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think yes,

Because in figure 27 they talk about javax.transaction.UserTransaction begin() and commit() on client, which is done in case of bean-managed transaction demarcation; where as in figure 28 they have shown the transaction started by server with transaction attribute is "REQUIRED", which is done in case of container-managed transaction demarcation when transaction not defined in deployment descriptor.

Please correct me if I am wrong.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic