Imagine we have a scenario wherein I have a transaction-scoped PersistenceContext created from a Stateless session bean. Now this will be propogated to call a method in a Stateful session bean that has an extended PersistenceContext. What happens in this scenario? Which will be the active PersistenceContext as seen by the container? The one from the Stateful session bean or the one from the Stateless session bean?
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
the stateful session bean will find the transaction-scoped persistence context
created by the stateless session bean, and the call into the stateful session bean method will fail. There
can be only one active persistence context for a transaction
hope it will help you to find the answer.
Prateek Singh with Suman Saha
permaculture is giving a gift to your future self. After reading this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop