• 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

BMT and Session beans

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

19) Which of the following statements are correct with bean-managed transaction demarcation?
a. A Stateful session bean must commit or rollback the transaction before the completion of the business method.
b. A Stateless session bean must commit or rollback the transaction before the completion of the business method.
c. A message-driven bean must commit or rollback the transaction before the completion of the business method.
d. None of the above.



The given correct answer is a. Shouldn't the answer be [b,c].

Please confirm

Thanks
 
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I also think that the answer is B and C. Maybe the question actually want to ask which statement is wrong ...

because for A, It is not a must for a stateful session bean instance to commit or rollback the transaction before the completion of business method. The container will retain the association of the transaction with the bean through out methods call untill the transaction is completed.
 
Ranch Hand
Posts: 918
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys

I also think that b and c are the correct answer, the SLSB and the MDB does have state thats why you need to must complete the trasaction before a business method ends. It must be a mistake.

Amirr , which is the provenience for this question ?

Regards,
Mihai
 
Amirr Rafique
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks mates.....

It is from java beat
 
What I don't understand is how they changed the earth's orbit to fit the metric calendar. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic