Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JBoss AS 7 disable hot deployment

Tags:

jboss

In previous versions you just disable the ScanEnabled attribute in conf/jboss-service.xml.

I am wondering how do you disable this on JBoss 7

Thanks

like image 348
shinra tensei Avatar asked Apr 18 '12 15:04

shinra tensei


People also ask

How do I turn off hot deployment?

1. In Integration Server Administrator, click Settings > Hot Deployment > Edit Hot Deployment Settings. 2. Next to Enable, select No to disable hot deployment of packages.

How do you deploy a war in JBoss EAP 7?

From the JBoss bin directory, run the command jboss-cli --connect to start the JBoss CLI and connect to the application server. Run the /deployment command on the compressed WAR file or exploded WAR folder. [If you are deploying to a managed domain, also run the /server-group command.]

What is auto deployment in JBoss?

Automatic application deployment is a simple process that consists of dropping an application into the deployments folder, which is located in the path JBOSS_HOMEstandalonedeployments. By default, every application archive (WAR, JAR, EAR, and SAR) that is placed into this folder is automatically deployed on the server.

What is exploded deployment in JBoss?

An exploded deployment is an application which is not packaged in a . war, . ear or . jar file but it's contained in a directory using these extensions (.


1 Answers

You could just remove the deployment scanner subsystem.

Remove <extension module="org.jboss.as.deployment-scanner"/> and then remove the:

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

If you don't want to remove the subsystem, add auto-deploy-zipped="false" auto-deploy-exploded="false" to your <deployment-scanner/> tag.

like image 60
James R. Perkins Avatar answered Oct 12 '22 22:10

James R. Perkins