1 Reply Latest reply on Nov 28, 2007 7:17 AM by pmuir

    Having more than one Seam EntityManager

    breako

      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