This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Propogation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Propogation" Watch "Propogation" New topic


Nikhil Jain
Ranch Hand

Joined: May 15, 2005
Posts: 385
What do you understand by

If the component is a stateful session bean to which an extended persistence context has been bound and there is a different persistence context bound to the JTA transaction, an EJBException is thrown by the container?
How and when, this scenario can arise?

Is there any good book that talks about Context/transaction propogation?


SCJP 1.4, SCWCD 1.4, SCBCD 1.5
nitin pai
Ranch Hand

Joined: May 30, 2006
Posts: 185
If somebody knows about this, please answer the question. I am also somewhat confused about which scenarios would this occur.

Pavan Shahi
Ranch Hand

Joined: May 01, 2006
Posts: 39

If you have a stateless session bean which have container managed persistence context.In this case when you call any method of entity manager at this pont a new persistence context is created and associated with your JTA transaction. Now if this bean call statefull session bean to which an extended persistence context has been bound and has transaction attribute REQUIRED, MANDATORY in this case JTA transaction already has one persistence context bound and statefull session bean now try to bound another persistence context hence you have big EJBException.

Hope i explain correctly.

SCJP 1.4 (93%)<br />SCBCD 5 (96%)
I agree. Here's the link:
subject: Propogation
It's not a secret anymore!