1 of 1 people found this helpful
The driver module must be copied to all host instances. Starting with WildFly or even with the upcomming EAP6.2 version there is a feature to distribute a 'patch' which can be module, but for the moment you need to manual copy it.
The datasource can be configured in the domain itself, using the XML or CLI/MgmtConsole. As you have a profile which can be used in several server-groups you can use the same datasource for several groups.
Also it is possible to use $[...} expressions and set the variable name in the server-group as property to reuse one configuration with different DB behind.