The RMI stub used by the naming service
determines the IP address from the host name
This is probably not configured correctly, either
on the server or the client.
Can you please tell me how I can configure the RMI stub. I have no idea what it is?
Thanks for your response.
This is all in the FAQ forum.
The naming service is a remote object.
i.e. You can download an object that
takes methods invocations on the client
and passes them to the server.
The way RMI works means that the remote object
has an the ip address of the server embedded in
it. RMI is a bit lame when it comes to working
out the ip address, it can often get it wrong
when it has a choice or it is misconfigured.
e.g. /etc/hosts on redhat
You can see the ip address used if you telnet to
port 1099 (it is embedded in the junk).
Possible solutions are to check your
host<-->ip config, either your local host table
or a dns.
You can explicitly set the ip address/host name to use
by setting the java property on the java command
in run.sh or run.bat
Or just tell it to use your hostname rather than
an ip address
Using the hostname means the clients need
to be able to map the hostname to an ip
Thanks for the information. I am using 'IPAddress' to connect to jboss both at the server and the client but still the client is not able to lookup the connectionfactory if the server has a dynamic address. If the server has static address it works.
Could someone help me.