Home > Archive > Java Beans > March 2004 > outside of $JBOSS_HOME/server deployment
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
outside of $JBOSS_HOME/server deployment
|
|
| Tomer Ben-David 2004-03-19, 8:46 pm |
| I am wondering if it is possible (without any modifications to JBoss
distribution) to run a configuration located in a directory outside of
$JBOSS_HOME/server ??
I tried passing in an absolute path via -c parameter to run.sh - which
find the conf and deploy directories fine, but it looks like JBoss
fails to handle absolute paths to generate tmp and log directories,
which are created under $JBOSS_HOME/server/[absolute path]
I realize using relative paths can resolve this, but that's just a
little too ugly for my taste. Right now I am solving this issue with
sym-links, but that is not too pretty either. Is there a parameter I
can pass in or a shell variable I can set to change location of
configuration from $JBOSS_HOME/server to something else?
My goal is to be able to use a custom configuration with a read-only
stock JBOSS install.
Thanks.
| |
| Tomer Ben-David 2004-03-19, 8:46 pm |
| First Thanks! that was very helpfull.
Can I tell JBOSS as well That Instead of
server-base/default/deploy
I would like to use
/server-base/default/deployA
?
Marek Lange <marek.lange@web.de> wrote in message news:<c2ng45$695$07$1@news.t-online.com>...
> Tomer Ben-David wrote:
>
> Yes, it is possible. The only thing you need to do is changing JBoss
> environment variables. Here is an example for a server configuration
> which is located two directories above the original directory and is
> called 'server-base':
>
> -Djboss.server.base.dir=../../server-base
> -Djboss.server.home.url=file:../../server-base/default
> -Djboss.server.config.url=file:../../server-base/default/conf
> -Djboss.server.lib.url=file:../../server-base/default/lib
>
> Just change JAVA_OPTS in the start script. Be aware of the difference
> between the directory and URL properties. Check it out.
>
> -marek
| |
| Marek Lange 2004-03-19, 8:46 pm |
| Tomer Ben-David wrote:
> First Thanks! that was very helpfull.
>
> Can I tell JBOSS as well That Instead of
>
> server-base/default/deploy
> I would like to use
> /server-base/default/deployA
See /conf/jboss-service.xml and the DeploymentScanner MBean. You can
define the deploy urls the scanner is watching.
-marek
|
|
|
|
|