JBoss Custom Deployment Structure 

Joined:
03/21/2010
Posts:
49

December 31, 2010 13:02:23    Last update: December 31, 2010 13:03:27
The JBoss Microcontainer provides three StructureDeployer implementations out-of-the-box, with relativeOrder values defined for each:
  1. DeclaredStructure: relativeOrder 0
  2. JARStructure: relativeOrder 10000
  3. FileStructure: relativeOrder Integer.MAX_VALUE


At deployment time, the StructureDeployer with lower relativeOrder will be consulted first to determine the structure of a deployment. This means that DeclaredStructure is always called first followed by JARStructure and finally FileStructure.

DeclaredStructure allows you to specify the structure of a deployment, including any nested deployments, using an XML file named jboss-structure.xml placed in the deployment's META-INF directory. For example, the following is jboss-structure.xml for jbossweb.sar, the JBoss Tomcat service:
<?xml version="1.0" encoding="UTF-8"?>
<structure>
    <context>
        <path name=""/>
        <metaDataPath>
            <path name="META-INF"/>
        </metaDataPath>        
        <classpath>
            <path name=""/>
            <path name="" suffixes=".jar" />
            <path name="jsf-libs" suffixes=".jar" />
        </classpath>
    </context>
</structure>
Share |
| Comment  | Tags