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

PeterJ do-not-reply at jboss.com
Tue Nov 4 11:08:33 EST 2008


If you really insist on using an environment variable, then try this (you didn't say which OS you are using, so I'll use Linux syntax). Set the env var:

export MYDS="java:MyEJB3DS"

then in the run.conf, add:

JAVA_OPTS=$JAVA_OPTS -Dmyds=$MYDS

and change the persistence.xml file as Jaikiran mentioned. 

All this does is converts an env var into a system property. 

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

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



More information about the jboss-user mailing list