1 Reply Latest reply on May 7, 2003 9:36 AM by Randahl Fink Isaksen

    Placing the *-ds.xml file in a SAR

    Randahl Fink Isaksen Novice

      I am trying to put all the components of my solution into a single SAR (this is to fix class loading problems), so I have now put MBeans, web archive, and the EJB jar inside it. The only thing I haven't been able to place correctly is my data source (sapdb-ds.xml). After moving the EJB jar file into the sar I have a problem with JBoss not starting up the data source in time. If I start JBoss and manualle makes it deploy my data source before I deploy my SAR everything works fine, but if I start JBoss with no deployments and then deploy the data source file and the SAR at about the same time, then the data source is not found in time when the EJBs are starting up. Placing the datasource in the root of the SAR does not help either. I would like to place my datasource inside the SAR somewhere but I need to manage the dependencies correctly so the data source is LIVE when the EJBs are starting up - how can I do that? Any hints would be appreciated.