• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic