Using The Jbossas-* Commands From Any Directory - Red Hat APPLICATION STACK 1.2 - RELEASE NOTES Release Note

Table of Contents

Advertisement

Chapter 4. Using JBoss AS
'minimal' and 'all', you must create a new directory for your configuration as follows (note the
switches given to the
cp
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
, as usual.
run.sh
3. Creating copies of
The analog of unzipping another copy of JBoss AS in a different directory is to make a copy of
the RPM-installed
JBOSS_HOME
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
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
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
Most of the commands found in
like
jbossas-command
instance, there is a
jbossas-run
To use these commands, however, you must set two environment variables:
export JBOSS_HOME=/var/lib/jbossas
14
command):
JBOSS_HOME
, located at
/var/lib/jbossas
user and group ownership, use instead:
jboss
commands from any directory
jbossas-*
$JBOSS_HOME/bin
, where
is the original JBoss AS command name. So, for
command
command that is available from any directory.
.
Running multiple instances of
have equivalents in
/usr/bin
flag to
-c
with names

Advertisement

Table of Contents
loading

Table of Contents