This content has been marked as final.
Show 2 replies
-
1. Re: pulling connection url out of Datasource files
peterj Mar 11, 2009 4:34 PM (in response to bluegirl125)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>
-
2. Re: pulling connection url out of Datasource files
bluegirl125 Mar 11, 2009 6:22 PM (in response to bluegirl125)Hi Peter!
That solves it. Thanks for the help!