简体   繁体   中英

JBoss change the deployment marker file location

By default, JBoss creates abc.war.deployed marker file for a deployed war file abc.war in deployment directory on successful deployment.

Is it possible to change this? I mean just the marker file location. I think entire deployment directory can be changed. But I would like to change just the marker file location.

I am using JBoss 7.

You can't change that as each marker file has a sense for the deployment scanner. One way to avoid that is not to deploy using the deployment scanner but using the management API (via jboss-cli deploy command or HAL).

The Wildfly Deployment Scanner (which very likely is being used verbatim in JBoss) does not provide configuration to change or avoid the deployment marker files.

https://docs.wildfly.org/26.1/Admin_Guide.html#Deployment_Scanner

But what you definitely can do is to disable the JBoss deployment scanner, then tell the JBoss microkernel to use a subsystem that you provide: Your own, tweaked version of the deployment scanner. It will have all the features that you implement.

BTW, why do you want to get rid of the marker files?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM