• 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

questions on SFSB?

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.
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic