aspose file tools*
The moose likes JBoss/WildFly and the fly likes Application folder outside JBoss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Application folder outside JBoss" Watch "Application folder outside JBoss" New topic
Author

Application folder outside JBoss

Ganesh Sundaresan
Ranch Hand

Joined: Feb 09, 2006
Posts: 36
Hi,

Can I place my application folder outside JBoss and give a context to it?
This can be done in Tomcat by setting up context path in server.xml

For Ex:

<Context path="" docBase="/export/home/user/test/" debug="0" ></Context>
while the server will be in /appl/tomcat/..

Can anyone help me how to do this in Jboss?
Should all application be deployed under /default/deploy only ?


Thanks in Advance


Thanks, Ganesh
SJCP (95%), SCWCD (75%), SCDJWS (Planning to take....)
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9317
    
109

Check out the file jboss-service.xml present in the %JBOSS_HOME%/server/default/conf directory. This file contains the following description:

<!-- URLs are comma separated and resolve relative to the server home URL
unless the given path is absolute. If the URL ends in "/" it is
considered a collection and scanned, otherwise it is simply deployed;
this follows RFC2518 convention and allows discrimination between
collections and directories that are simply unpacked archives.

URLs may be local (file or remote (http . Scanning is supported
for remote URLs but unpacked deployment units are not.

Example URLs:
deploy/
scans ${jboss.server.url}/deploy/, which is local or remote
depending on the URL used to boot the server
${jboss.server.home}/deploy/
scans ${jboss.server.home)/deploy, which is always local
file:/var/opt/myapp.ear
deploy myapp.ear from a local location
file:/var/opt/apps/
scans the specified directory
http://www.test.com/netboot/myapp.ear
deploys myapp.ear from a remote location
http://www.test.com/netboot/apps/
scans the specified WebDAV location
-->
<attribute name="URLs">
deploy/
</attribute>


This comment explains how to deploy a application which is outside the jboss directory. Try it out.
[ July 13, 2006: Message edited by: jaikiran pai ]

[My Blog] [JavaRanch Journal]
Ganesh Sundaresan
Ranch Hand

Joined: Feb 09, 2006
Posts: 36
Thanks buddy its working!!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Application folder outside JBoss
 
Similar Threads
context path setting in jboss
IS webapp folder must?
JBoss Context
How to set application context path in server.xml
How to Define web context in JBoss other then using war file??