Looks like System.getProperty(IConstants.SYSTEM_HOST_PROP) is returning null.
Yeah you are right that property is retrning null
The value is Icontants.SYSTEM_HOST_PROP=jboss.bind.address
So when i start jboss server with -b <ip-address> switch i will get the binding ip address of the server and using i am constructing provider_url for Context.
And both jboss nodes i am starting with partition name as QA-Cluster
and binding addrress as 192.168.1.101 and 102
so command is
run.sh -c all -b 192.168.1.101 -g QA-Cluster
run.sh -c all -b 192.168.1.102 -g QA-Cluster
Am i missing something here while starting ? or something else is problem
If IConstants.SYSTEM_HOST_PROP="jboss.bind.address" and you're starting with -b, that should work. Sounds like you need to run it in a debugger or add some logging or something to see why 'host' is getting set to null.