[jboss-user] [JBoss Seam] - Having more than one Seam EntityManager

breako do-not-reply at jboss.com
Tue Nov 27 07:15:35 EST 2007


Hi,
I know it is possible to have a Seam managed EntityManager. However it is not possible to set the persistence context for it using the usual JPA annotation. Instead, the persistence unit is set in the the Seam components XML file. 

This is all fine if you only have one persistence-unit, what happens if there is more than one persistence unit and you require some of POJO's to use one EntityManager with one specific persistence unit and some of your other POJOs to use another EntityManager talking to another persistence unit?

Can this be done?

Thanks

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

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



More information about the jboss-user mailing list