WildFly Exploded Deployments with auto-deploy-exploded: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 14: Line 14:
=Configuring the Deployment Scanner to Auto-Deploy Exploded Deployments=
=Configuring the Deployment Scanner to Auto-Deploy Exploded Deployments=


Configure the deployment scanner as such:
Configure the deployment scanner setting the <tt>auto-deploy-exploded</tt> attribute to <tt>true</tt> as such:


<pre>
<pre>
        <subsystem xmlns="urn:jboss:domain:deployment-scanner:1.1">
            <deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000" auto-deploy-exploded="true"/>
        </subsystem>
</pre>
</pre>
Once configured, the deployment scanner will pick up and deploy exploded JEE archives.

Revision as of 22:55, 31 March 2016

Internal

Overview

Exploded deployments are not deployed by default by a WildFly instance. If a directory with a standard JEE extension (.ear, .war, etc.) is encountered in the deployments directory, a standardly configured WildFly instance will issue a log message similar to:

15:51:08,008 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found test.ear in deployment directory. To trigger deployment create a file called test.ear.dodeploy

Configuring the Deployment Scanner to Auto-Deploy Exploded Deployments

Configure the deployment scanner setting the auto-deploy-exploded attribute to true as such:

        <subsystem xmlns="urn:jboss:domain:deployment-scanner:1.1">
            <deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000" auto-deploy-exploded="true"/>
        </subsystem>

Once configured, the deployment scanner will pick up and deploy exploded JEE archives.