In domain mode, each server belongs to one server-group, each server-group has a profile defined in domain.xml, is it possible to know which profile is used during DeploymentUnitProcessor.deploy() is invoked?
I need to register the installed jdbc drivers, which needs the information of profile the current server uses in domain mode.
JDBC driver can be installed as a JBoss module, or can be deployed as a deployment(via CLI: deploy jdbc-driver.jar), where the DriverProcessor.deploy() is processed. In the latter case, how can I know which profile the current server(for example: server-one) runs against?
The recommendation is to always use the module option in domain mode. For standalone mode you are free to choose between module and deployment since both options will work. (JDBC Driver / DataSource Setup | HAL Management Console)