Bonjour tous le monde,
J'ai un ear qui contient 12 application web 'war' a deployé sur JBoss4. Je me demande y a t il un moyen pour forcer le chargement des war dans un ordre définit à l'avance?
Merci d'avance
Bonjour tous le monde,
J'ai un ear qui contient 12 application web 'war' a deployé sur JBoss4. Je me demande y a t il un moyen pour forcer le chargement des war dans un ordre définit à l'avance?
Merci d'avance
Plusieurs solutions:
- tu nommes tes war : 01myApp.war, 02mySecondApp.war
- tu ajoutes un tag <depends></depends> dans jboss-web.xml
avec application.xml :20:50:46,543 INFO [EARDeployer] Init J2EE application: file:/app/jboss/AAA_Platforms_products/JEAP/4.3_CP07/jboss-as/server/default/deploy/test.ear/
20:50:46,621 INFO [TomcatDeployer] deploy, ctxPath=/mytest, warUrl=.../deploy/test.ear/01mytest.war/
20:50:46,690 INFO [TomcatDeployer] deploy, ctxPath=/mytest, warUrl=.../deploy/test.ear/02mytest.war/
20:50:46,788 INFO [TomcatDeployer] deploy, ctxPath=/mytest, warUrl=.../deploy/test.ear/03mytest.war/
20:50:46,840 INFO [TomcatDeployer] deploy, ctxPath=/mytest, warUrl=.../deploy/test.ear/04mytest.war/
20:50:46,892 INFO [EARDeployer] Started J2EE application: file:/app/jboss/AAA_Platforms_products/JEAP/4.3_CP07/jboss-as/server/default/deploy/test.ear/
20:50:47,008 INFO [Http11Protocol] D?marrage de Coyote HTTP/1.1 sur http-127.0.0.1-8080
20:50:47,048 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
20:50:47,077 INFO [Server] JBoss (MX MicroKernel) [4.3.0.GA_CP07 (build: SVNTag=JBPAPP_4_3_0_GA_CP07 date=200911251949)] Started in 11s:208ms
<application>
<module>
<web>
<web-uri>01mytest.war</web-uri>
</web>
</module>
<module>
<web>
<web-uri>04mytest.war</web-uri>
</web>
</module>
<module>
<web>
<web-uri>02mytest.war</web-uri>
</web>
</module>
<module>
<web>
<web-uri>03mytest.war</web-uri>
</web>
</module>
</application>
Vous avez un bloqueur de publicités installé.
Le Club Developpez.com n'affiche que des publicités IT, discrètes et non intrusives.
Afin que nous puissions continuer à vous fournir gratuitement du contenu de qualité, merci de nous soutenir en désactivant votre bloqueur de publicités sur Developpez.com.
Partager