| How to use an env variable in your persistence.xml ? |
| Written by Mark S. | |||||
|
Simply wrap your env variable in into ${variable} Example:
<persistence>
<persistence-unit name="CustomEJB3Persistence">
<jta-data-source>${myds}</jta-data-source>
</persistence-unit>
</persistence>
then pass the variable to the runs.h script run.sh -Dmyds=$myds
JBoss.org Search
Custom Search
Only registered users can write comments!
Powered by !JoomlaComment 3.26
3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved." |


