[jboss-user] [JBoss Seam] - How to Extend Persistence Context Programatically

bravefencer do-not-reply at jboss.com
Mon Oct 1 12:14:23 EDT 2007


How can i extend the PersistenceContext Programmatically ? 

For Example:

@PersistenceContext( type=PersistenceContextType.EXTENDED)
	 EntityManager em;

that doesn't work, because i have more than one Persistcence-unit. 

i'm getting the Entitymanager via:

EntityManager	em = (EntityManager)Component.getInstance("entityManager");


But its not extended, so if i'am using the EntityManager in a Stateful Session Bean, the DataSelection Modell will not work. 

So how can i extend the PersistenceContext also?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090327#4090327

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090327



More information about the jboss-user mailing list