2 Replies Latest reply on Oct 14, 2008 4:05 PM by Timothy Freyne

    How to get the defined persistenceUnits

    Timothy Freyne Newbie
      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