Hi,
I wrote on startup mbean in
jboss, which actually starts at the system startup.
I wrote a code to get the DSN name from the oracle-ds.xml file in the startup mbean. When I am trying to get the data source name through the initial context, it is telling "OracleDSN" not bound. It is actually right.
oracle-ds.xml file is deploying after my mbean.
My mbean should be loaded after the oracle-ds.xml MainDeployer.
I wrote the jboss-service.xml as follows.
<?xml version="1.0" encoding="UTF-8"?>
<server>
<mbean code="at.gecf.framework.util.ConfigStartup" name=":service=ConfigStartup">
<depends optional-attribute-name="Deployer">
jboss.system:service=MainDeployer
</depends>
</mbean>
</server>
Please any one let me know .. am I going in the correct.
Please help me is there any other way..
Regards
Seshu Babu