[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: pulling connection url out of Datasource files
PeterJ
do-not-reply at jboss.com
Wed Mar 11 16:34:22 EDT 2009
Are you saying that all of the files have the same URL? If so, you are in luck! You can replace the URL with a system property reference, for example:
<connection-url>${your.oracle.rac.url}</connection-url>
Then set the your.oracle.rac.url system property in the run script by adding "-Dyour.oracle.rac.url=jdbc:oracle:thin:@host:1521:SID" (or whatever the actual URL is) to JAVA_OPTS.
And you can even provide a default value, just in case you run the app server without specifying the system property:
<connection-url>${your.oracle.rac.url:jdbc:oracle:thin:@host:1521:SID}</connection-url>
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217164#4217164
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4217164
More information about the jboss-user
mailing list