Hi Tim,
I think the key here is to understand that a server group is used to share a common configuration (a profile) only with the servers included in that server group.
You create common configurations (profiles) and you apply a profile to a server group. All the servers that belong to that server group will get the configuration of the profile applied to that server group. So, you need to have a new profile with the DS configuration and apply that configuration only to the servers you want by using a specific server group.
For your use case, you could:
1. Create a new profile to modify later the data source at your convenience. You can clone a base configuration from an existing profile:
[domain@localhost:9990 /] /profile=full:clone(to-profile=full-for-jdbc-profile)
2. Create a new server group specifying that you want to apply the full-for-jdbc-profile configuration to the servers of that server group. For example:
[domain@localhost:9990 /] /server-group=server-group-for-jdbc:add(profile=full-for-jdbc-profile, socket-binding-group=full-sockets)
3. Assign servers to work under that server group. Stop your Host Controller, edit your host.xml and change the server-group of the servers you want to move to the new server group. For example:
<servers>
<server name="server-one" group="server-group-for-jdbc"/>
<server name="server-two" group="other-server-group">
<socket-bindings port-offset="150"/>
</server>
</servers>
4. Deploy the driver only to the server-group-for-jdbc server group and modify the DS on full-for-jdbc-profile profile:
[domain@localhost:9990 /] deploy $DRIVER_HOME/postgresql-42.3.2.jar --enabled --server-groups=server-group-for-jdbc
[domain@localhost:9990 /] /profile=full-for-jdbc-profile/subsystem=datasources/data-source=PostgreDS:add(driver-name=postgresql-42.3.2.jar, jndi-name=....., connection-url=.... user-name=....., password=...., ....)
You will end up with server-one running on server-group-for-jdbc getting the configuration of full-for-jdbc
The server-two will be running on an independent server-group, other-server-group, using a different DS configuration.