• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

MBean's depends option in Jboss

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Lookout! Runaway whale! Hide behind this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic