'production', '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 Application Server 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 Application Server documentation. Refer to
Running
multiple instances of JBoss Application Server
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 Application Server 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 Applic...
14
Summary of Contents for APPLICATION STACK 2.0 RELEASE
Page 1: ...Red Hat Application Stack V 2 0 Release Notes 2 0 ISBN N A Publication date ...
Page 2: ...Red Hat Application Stack V 2 ...
Page 3: ...Red Hat Application Stack V 2 0 Release Notes Copyright 2007 Red Hat Inc ...
Page 4: ...Red Hat Application Stack V 2 ...
Page 6: ...vi ...
Page 8: ...2 ...
Page 12: ...6 ...
Page 26: ...20 ...