I am new to JBOSS. I have created an MBean which depends on datasource. In JBOSS-SERVICE.xml file , i have mentioned dependency as jboss.jca:name=OracleDS,service=LocalTxCM. I am deploying MBEAN as SAR file along with EAR of my application. But MBean is getting started even before Datasource is getting bound to JNDI. Due to which i am getting "Datasource not found exception".