5 Replies Latest reply on Oct 4, 2015 8:02 PM by jameslivingston

    Start background process on the startup of the Application

    fmontada

      Hi team

      we are using wildfly-8.1.0.Final and we have the .ear structure described below

       

      application.ear

           -META-INF

           -lib

           -startup.sar

           -app1.war 

           -app2.war 


      We have a problem to start our background process ( config, audit .....) BEFORE the .war are deploy , the solution that we have right now is using "startup.sar" with the deployment descriptor below , but it is not working


      <jboss-deployment-structure>

        <ear-subdeployments-isolated>false</ear-subdeployments-isolated>

             <sub-deployment name="startup.sar"/>

            <sub-deployment name="app1.sar">

                <dependencies>

                   <module name="deployment.application.ear.startup.sar" />

                </dependencies>

             </sub-deployment>

            <sub-deployment name="app2.war">

                 <dependencies>

                     <module name="deployment.application.ear.startup..sar" />

                 </dependencies>

        </sub-deployment>

      </jboss-deployment-structure>


      could you help us ?

       

      Thanks

      Francisco