Thursday, December 31, 2009

How to deploy WAR JAR EAR in an external folder (directory) in Jboss



With JBoss 6.0.0.M1 out to try out the new JSRs the following may be helpful in reducing time to deploy.
The usual way in which we deploy an application (war , jar or ear ) is to drop the application archive ( or in expanded mode with the folder name ending with .war or .ear) under deploy folder of the server.
But how to deploy an application archive or a folder when it is not residing under deploy folder but resides in some other external folder?
Let’s say the application ROOT folder is E:\javaapps\myapptodeploy\webapplication.war, then in jboss-service.xml (under conf folder of the JBoss server profile (like default, all)),  we mention the following. This is very helpful when we build the project using Maven as we can mention the target directory directly without copying the files after each build.
?
1
<attribute name="URLs">
3
attribute>

No comments: