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.
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