Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Can entity beans exist with BMT demarcation?

 
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If no ..then...

Entity beans with BMT demarcation must use the getStatus method instead of the getRollBackOnly method ---is correct or wrong??

Termed as correct in HFEJB asnwer for the final mock exam Q 49th.
Could someone explain how is this possible?
 
Ranch Hand
Posts: 250
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
BMT demarcation means you are using UserTransaction interface which has a getStatus method and don't have getRollBackOnly method.
 
trivikram Kumar
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thankyou Sawan for all your answers.
For this question ,Can entity beans be BMT.
They can only be a CMT right?
Then in that case ,where is the chance of calling the methods in the user transaction for entity beans??
Thanks in advance for your answers.
 
trivikram Kumar
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Could someone answer this please....
 
sawan parihar
Ranch Hand
Posts: 250
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Entity beans with BMT demarcation must use the getStatus method instead of the getRollBackOnly method ---is correct or wrong??



If we are talking about EJB 2.0 then entity beans must use CMT. I don't remember where in the specs this has written.

Hope it helps.
 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If we are talking about EJB 2.0 then entity beans must use CMT. I don't remember where in the specs this has written.

For all CMP beans CMT is must but for BMP one will need to use User transaction and for that it has to follow BMT demarcation .
 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Entity Beans can be CMT only. So HF Mock question is wrong.
Paul Shangera's book says this in bold [ Entity Beans can only be CMT]
 
reply
    Bookmark Topic Watch Topic
  • New Topic