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.


Related articles available on

How to configure JBoss to disable hot deployment ?

On JBoss AS 7 and WildFly the default rule is that archived appli

How do I make sure my MBean is deployed after my EJB ?

  If your MBean is dependant on another resource, supposing cont

How do I change the default lib directory in an ear file?

  Supposing you have an Enterprise application which has been pa

How to let JBoss deploy an application after other apps?

  If you are running JBoss AS 7 or WildFly check the following t

How to add a custom JBoss archive in an Ear ?

JBoss custom archives (like .sar or .har) are not recognized by t

JBoss deployment directory configuration

In this tutorial we are going to show how to provide an alternati