i have the 5.1.0 installed.
in the ./jboss_init_redhat.sh i have the following changes:
#define the script to use to start jboss
JBOSSSH=${JBOSSSH:-"$JBOSS_HOME/bin/run.sh -c $JBOSS_CONF -b $JBOSS_HOST -Djboss.service.binding.set=ports-01"}
thats the only change i made for jboss.
and than i start the jboss_init_redhat.sh with start.
i defined the follwing things in the .bash_profile:
JBOSS_USER=eessiusr
export JBOSS_USER
JBOSS_CONF=default
export JBOSS_CONF
JBOSS_HOST=<IP>
export JBOSS_HOST
export PATH
thnx.