This content has been marked as final.
Show 1 reply
-
1. Re: setting nodeName through the command line when starting jboss server.
jeff.yuchang Sep 14, 2010 8:20 PM (in response to jeff.yuchang)Looked at the code, it seems the nodeName is built as following, another question is that can I get this node name from JNDI or system variable somewhere? apart from the HaPartition service.
public ClusterNode getClusterNode(Address a) { IpAddress result = addressMap.get(a); if (result == null) { result = (IpAddress) channel.downcall(new Event(Event.GET_PHYSICAL_ADDRESS, a)); if (result == null) { throw new IllegalStateException("Address " + a + "not registered in transport layer"); } addressMap.put(a, result); } AddressPort addrPort = new AddressPort(result.getIpAddress(), Integer.valueOf(result.getPort())); String id = channel.getName(a); if (id == null) { id = addrPort.getHostAddress() + ":" + addrPort.getPort(); } return new ClusterNodeImpl(id, a, addrPort); } }