• Post Reply Bookmark Topic Watch Topic
  • New Topic

questions on SFSB?  RSS feed

 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is the ejbCreate() in SFSB not in a transaction?
if it is not ,how can we access resource manager & other beans methods in ejbCreate()because bean law says :to access other bean methods or resource manager the method needs to be in a meaningful transaction
 
Ranch Hand
Posts: 775
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Spec section 7.6.1 pg 79-81 and 17.6.5 pg 363-364.
Although the spec never comes out completely and says it, it looks like 'meaningful transaction context' includes:
- transactions created via container-managed transaction demarcation
- transactions created via bean-managed transaction demarcation
- methods executed in an unspecified transaction context
When reading HFE I started thinking that anything not in the first 2 categories was thus in the 3rd category, but in going through the spec I've concluded that doesn't add up. The spec seems to specifically single out some methods as executing in an unspecified transaction context to give the container vendor free reign as to how they'll deal with transactionality. There are other methods that lack a transaction context entirely (like the no-arg constructor for a bean, or setSessionContext), and those are the methods that can't access a resource manager.
 
It is an experimental device that will make my mind that most powerful force on earth! More powerful than this tiny ad!
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!