There is no way to configure such a use case at the moment as far as I can see.
The only way to do it without a code change is
to add TRACE logging for org.jboss.resource and retrieve the -service.xml generated
by the -ds.xml.
You might be able to modify the -service.xml and deploy that directly?
That's exactly what I ended up with. Thanks for your reply. Had to change the following configuration in my service deployment descriptor:
<depends optional-attribute-name="ManagedConnectionPool"> <mbean code="org.jboss.resource.connectionmanager.JBossManagedConnectionPool" ...> <depends optional-attribute-name="ManagedConnectionFactoryName"> ... </depends> ... <attribute name="Criteria">ByNothing</attribute> </mbean> </depends>