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

Can entity beans exist with BMT demarcation?

 
trivikram Kumar
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • 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?
 
sawan parihar
Ranch Hand
Posts: 250
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • Quote
  • Report post to moderator
Could someone answer this please....
 
sawan parihar
Ranch Hand
Posts: 250
  • Mark post as helpful
  • send pies
  • 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.
 
Chetan Sahasrabudhe
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • 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 .
 
Kay Ra
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • 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]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic