0 Replies Latest reply on Jul 18, 2011 10:49 AM by Andrea Polci

    Jboss AS6 -service.xml deployment order

    Andrea Polci Newbie

      According what I've read on the wiki (http://community.jboss.org/wiki/URLComparator) all the files with -service.xml suffix should be deployed before any .ear.

      I've also checked my configuration and in deployers.xml my MainDeployer is configured to use org.jboss.system.deployers.LegacyDeploymentContextComparator, that if I'm right should use de ordering described in the link above.

       

      In my application I'm using properties-service.xml to define some property that need to be replaced in the ejb-jar.xml inside an ear I've built.

      Unfortunatly it seems that the ear is deployed before the properties-service.xml because my properties aren't replaced if I start jboss after putting the ear in the deploy directory.

      Instead if I start jboss and then put the ear in the deploy direcotry all get initalized correctly.

       

      Do anyone know what is the problem?

      Why the properties-service.xml is deployed after my ear?

       

      The only solution to my problem seems this workaround (http://community.jboss.org/message/527329) but why it doesn't work in the other way?

       

      Thanks for any help,

      Andrea Polci