aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Persistence context propagation is supported for any type of an entity manager? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Persistence context propagation is supported for any type of an entity manager?" Watch "Persistence context propagation is supported for any type of an entity manager?" New topic
Author

Persistence context propagation is supported for any type of an entity manager?

Fu Dong Jia
Ranch Hand

Joined: May 23, 2007
Posts: 131
Is this state correct?if not,why?
thanks in advance!


who dare win!<br />SCJP5(94%)|SCWCD5(86%)|SCBCD(100%)|SCEA in progress
Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 547

well, what do you think the "different types of entity manager" are ??


SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCBCD 5
Visit my blog
Fu Dong Jia
Ranch Hand

Joined: May 23, 2007
Posts: 131
Type of entity manager:transaction-scoped OR extended!
am i correct?
Fu Dong Jia
Ranch Hand

Joined: May 23, 2007
Posts: 131
Type of EntityManager:Transaction-Scoped OR extended.
Am I correct?
Ralph Jaus
Ranch Hand

Joined: Apr 27, 2008
Posts: 342
Persistence context propagation is supported for any type of an entity manager?
No, not for application managed entity managers (see jpa spec 5.7).
Type of EntityManager:Transaction-Scoped OR extended.
Yes: If the entity manager is container managed, you can use the field "type" in @PersistenceContext (extended only applies for stateful session beans!). And application managed entity managers are always extended (see again jpa spec 5.7).


SCJP 5 (98%) - SCBCD 5 (98%)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Persistence context propagation is supported for any type of an entity manager?