• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

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

 
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?
 
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.
 
Something must be done about this. Let's start by reading this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic