1 Reply Latest reply on May 8, 2007 4:16 AM by David Bell

    Dynamic jdbc connection

    David Bell Newbie

      Is there any way of programmatically configuring the JDBC connection associated with a persistence unit? Specifically the username and password.

      I would like to use EJB3 entities in a client application and the user login is the login to the database.

      I thought about dynamically binding a Datasource into JNDI under the name in persistence-unit.xml but can't see a way of doing this.

      Many thanks.