Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

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

scott.stark@jboss.org

2007-05-03


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
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.