2 Replies Latest reply on Oct 14, 2008 4:05 PM by timothy.timothy.freyne.msp.be

    How to get the defined persistenceUnits

    timothy.timothy.freyne.msp.be
      Hi,


      How to get the defined persistenceUnits in persistence.xml? Just a list of their names would also be fine.
        e.g.: List list = Container.getPersistenceUntis()??

      Environment: Seam 2.0.1 GA, Tomcat 6.0 so no EJB3 but using Seam-POJOs. Seam Managed Transactions.


      We would like to select a database at login and reuse the dao's and entities. All ideas, links and recommendations are most welcome.


      Thanks,

      Timothy