1 Reply Latest reply on Jun 9, 2007 7:04 PM by peterj

    How can I give the deplyoment sequence in 4.0.2

    vincecallagan

      Hello,

      Running locally, I have a EAR with some EJB's that need to be accessed remotely (I can not modify this application). I am building a WAR that access the EJB's via a Spring Injection. This is working well when I deploy the EAR first and secondly the WAR.

      My problem is at startup, JBOSS deploy first the WAR and then the EAR giving me errors because the JNDI is not yet populated with the EJB's binding.

      My question is : is it possible to configure JBOSS AS 4.0.2 in order the deploy the WAR at the end of the startup procedure ?

      Many thanks in advance

        • 1. Re: How can I give the deplyoment sequence in 4.0.2
          peterj

          One possibility: create a directory name doit.last in the deploy directory and then place the WAR file in that directory. Any components in a directory ending with the .last suffix are deployed after everything else.

          (I though that WARs were always deployed after EARs. But is has been a while since I played with 4.0.2.)