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.
Marek Lange - 10 Mar 2004 16:35 GMT
> I am wondering if it is possible (without any modifications to JBoss
> distribution) to run a configuration located in a directory outside of
[quoted text clipped - 10 lines]
> can pass in or a shell variable I can set to change location of
> configuration from $JBOSS_HOME/server to something else?
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
Tomer Ben-David - 11 Mar 2004 07:14 GMT
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
?
> > I am wondering if it is possible (without any modifications to JBoss
> > distribution) to run a configuration located in a directory outside of
[quoted text clipped - 25 lines]
>
> -marek
Marek Lange - 11 Mar 2004 08:15 GMT
> First Thanks! that was very helpfull.
>
[quoted text clipped - 3 lines]
> 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