[jboss-user] [EJB 3.0] - Re: Using enviroment variables in persistence.xml

jaikiran do-not-reply at jboss.com
Tue Nov 4 04:20:55 EST 2008


Its possible. Here's an example:

  | <persistence> 
  | 	<persistence-unit name="EJB3Persistence"> 
  | 
  | 		<jta-data-source>${myds}</jta-data-source> 
  | 
  | 	</persistence-unit> 
  | </persistence>

Then i pass the "myds"  value as a JVM parameter while starting JBoss:

run.bat -Dmyds=java:MyEJB3DS

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

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



More information about the jboss-user mailing list