0 Replies Latest reply on Aug 15, 2007 9:55 AM by Moshe Ben Shoham

    SAR to depend on all datasources?

    Moshe Ben Shoham Newbie

      Hi,

      I have a SAR that dynamically scans the JNDI tree to discover the deployed datasources. I need to make sure all datasources are loaded before the SAR is. I know I can define the dependency explicitly in the jboss-service.xml like this:

      <server>
       <mbean code="com.blabla"
       name="com.blabla:service=BatchServer">
       <depends>jboss.jca:service=DataSourceBinding,name=jdbc/com/blablaDataSource/ds1</depends>
       <depends>jboss.jca:service=DataSourceBinding,name=jdbc/com/blablaDataSource/ds2</depends>
       <depends>jboss.jca:service=DataSourceBinding,name=jdbc/com/blablaDataSource/ds3</depends>
       </mbean>
      </server>


      but I don't want to maintain this list together with the datasources list. Can I somehow depend on all datasources?

      Thanks