'minimal' and 'all', you must create a new directory for your configuration as follows (note the
switches given to the
cp
command):
JBOSS_BASE=/var/lib/jbossas
cd $JBOSS_HOME
cp -pL -R server/default server/myownconfig
You can then change the configuration and request it to be used by specifying it in the
-c
flag to
run.sh
, as usual.
3. Creating copies of
JBOSS_HOME
The analog of unzipping another copy of JBoss AS in a different directory is to make a copy of
the RPM-installed
JBOSS_HOME
, located at
/var/lib/jbossas
.
You probably want this copy to have your own userid and group, so use:
cp -L -R /var/lib/jbossas my_new_jboss_home_directory
If you want to retain the
jboss
user and group ownership, use instead:
cp -pL -R /var/lib/jbossas my_new_jboss_home_directory
To run multiple servers simultaneously you will need to adjust the configuration to avoid port
conflicts, as described in the JBoss AS documentation. Refer to
Running multiple instances of
JBoss AS
for more information.
Note
Please note that automated updating of copies created using methods above is
not supported. If you create custom copies, you will manually have to port files /
changes from a new update to that copy.
4. Using the
jbossas-*
commands from any directory
Most of the commands found in
$JBOSS_HOME/bin
have equivalents in
/usr/bin
with names
like
jbossas-command
, where
command
is the original JBoss AS command name. So, for
instance, there is a
jbossas-run
command that is available from any directory.
To use these commands, however, you must set two environment variables:
export JBOSS_HOME=/var/lib/jbossas
Chapter 4. Using JBoss AS
14
Summary of Contents for APPLICATION STACK 1.3 RELEASE
Page 1: ...Red Hat Application Stack V 1 3 Release Notes 1 3 ISBN N A Publication date ...
Page 2: ...Red Hat Application Stack V 1 3 Release Notes ...
Page 3: ...Red Hat Application Stack V 1 3 Release Notes Copyright 2006 2008 Red Hat Inc ...
Page 4: ...Red Hat Application Stack V 1 3 Release Notes ...
Page 6: ...vi ...
Page 8: ...2 ...
Page 12: ...6 ...
Page 24: ...18 ...
Page 26: ...20 ...