1 Reply Latest reply on Mar 19, 2007 8:08 PM by srki

    Obtaining dynamic connection

    srki

      Hello,

      I am using hibernate3 with EJB3 and I would like to obtain a new EntityManager from the connection-url, userName and password that are sent by the client? I am not sure what params a client might send so I can not setup my dataSources at compile time.

      Thanks,

        • 1. Re: Obtaining dynamic connection
          srki

          Is it possible to create an EntityManager at run time just by specifying database connection?
          I know that I can create an entitymanager just by specifying persistenceUnitName that is already configured in my oracle-ds.xml file. However, in this case I would like to add a new entry to oracle-ds.xml file at run time from params provided by the client

          Thanks,