Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Application folder outside JBoss

 
Ganesh Sundaresan
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Ganesh Sundaresan
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks buddy its working!!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic