Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / JavaBeans / March 2004

Tip: Looking for answers? Try searching our database.

outside of $JBOSS_HOME/server deployment

Thread view: 
Tomer Ben-David - 10 Mar 2004 15: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
$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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.