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