• 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

BMT & CMT in ejbCreate

 
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have a significant point to get clarified. In case of stateful session bean, we will not be able to call methods on the (BMT) user transaction object, inside setSessionContext. Why is this? But, we will be able to do the same thing in the business method. What determines the access to the transaction method access? Also, how is this different incase of CMT based methods(setRollbackOnly & getRollbackOnly).

Thanks:
 
Ranch Hand
Posts: 222
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

In case of stateful session bean, we will not be able to call methods on the (BMT) user transaction object, inside setSessionContext. Why is this?



That's because setSessionContext runs under unspecified transaction context. Look at this page on Frederic's site. This table summarizes the various methods of various beans and their transaction context association. The spec page numbers, from where these details are taken, are also mentioned on the table.
 
Space pants. 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
    Bookmark Topic Watch Topic
  • New Topic