#!/bin/sh

#. ./env.sh 


export JBOSS_HOME=/opt/was/jboss-eap-6.4
export PORT_OFFSET=100

export CONTROLLER_IP=192.168.0.143
let CONTROLLER_PORT=9999+$PORT_OFFSET                                                                                                    
export CONTROLLER_PORT

unset JAVA_OPTS

export JAVA_OPTS="-Djava.awt.headless=false $JAVA_OPTS"

$JBOSS_HOME/bin/jboss-cli.sh  --controller=$CONTROLLER_IP:$CONTROLLER_PORT --connect $@
