4 Replies Latest reply on Aug 3, 2005 11:29 AM by Scott Stark

    DataSource & Service not loading incorrect order

    Gareth Powell Newbie


      I currently have a service SAR that uses an EJB3 Entity Bean. The bean depends upon an Oracle datasource. If I start my JBoss 4.0.1sp1 server with the datasource descriptor in the deploy directory and no SAR, the datasource is deployed correctly. If I then deploy the SAR, everything works perfectly. The problem occurs, when I restart the server. It appears that the SAR is deployed before the datasource, and therefore fails as the datasource is required by it. Can anybody explain why this is and how I can control the startup load order. I have tried adding the datasource's ObjectName into the jboss-service.xml as a dependency, but with no effect.

      Any suggestions would be very much apprecitated.

      Best Regards,

      Gareth Powell