users@glassfish.java.net

Re: JDBC Connection for Production / Integration

From: Tom Mueller <tom.mueller_at_oracle.com>
Date: Wed, 04 Jan 2012 08:55:04 -0600

Within the definition of the jdbc connection pool, you can you system
property substitutions.
For example, set the server name as:

<property name="serverName" value="${databasehost}"/>

Then, for each of the instances, create a system property for that instance:

asadmin create-system-properties --target test-Version
databasehost=testdbhost
asadmin create-system-properties --target live-Version
databasehost=livedbhost

Tom