check the jmx-console, you'll find the object names for deployed beans under the jboss.j2ee domain, your datasource will be under jboss.jca domain
thx for the answer.
I have added this to my jboss-service.xml after I found it on the jmx-console (localhost:8080/jmx-console)
when I deploy me sar file I get this error:
10:41:57,976 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()'
Cause: Incomplete Deployment listing:
Packages waiting for a deployer:
Incompletely deployed packages:
MBeans waiting for classes:
MBeans waiting for other MBeans:
I Depend On: jboss:service=Naming
Depends On Me: ]
I have been trying to achieve the same and I have so far found the following format to work :-