Advertise with us

Our eBooks

How to deploy an application temporarly with JBoss ?

One way to do it, is using the jboss.system:service=MainDeployer Mbean.
In practice, if you deploy an application using this MBean your application will be temporarly deployed on the application server. Why temporarly ? because it's not copied into the "deploy" directory but simply deployed where it is.

The location of the application is not persisted, JBoss keeps in memory the location of the application, so at server shutdown the application will exit from JBoss.

One way to reach this MBean is via the twiddle utility:

{xtypo_code}twiddle invoke "jboss.system:service=MainDeployer" deploy C:\TempApp.war{&xtypo_code}

Here the web application TempApp.war is deployed from C:\ . Until JBoss is running.

© 2021 All Rights Reserved.

Please publish modules in offcanvas position.