[jboss-user] [EJB 3.0] - Dynamic jdbc connection

dibell do-not-reply at jboss.com
Thu May 3 09:04:20 EDT 2007


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.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042810#4042810

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042810



More information about the jboss-user mailing list