Another question, why is it that mac os needs you to specify this
explicitly, because on widows it worked without it.
The simplest reason I can think of:
network configuration
I still find this sort of odd. As a variation of the earlier code...
String [] remotes = Naming.list(url);
seems very robust to tweaks in host.
I noticed a reglist command I have which is supposed to do this
standalone didn't work correctly, probably since I changed my rmi
port to 10099 to avoid conflicts with jboss RMI at some point.
I fixed reglist and played with it a little bit and it seems very
forgiving to variations in host.
e.g.
reglist localhost 10099
reglist: listing rmi://localhost:10099
//localhost:10099/org.cmdline.RMIClient_192.168.2.1_1_
//localhost:10099/org.cmdline.RMIServer
[The client code receives output callbacks on the rmi port as well.]
or to the 192.168.2.1 IP that shows that the client picked up
somewhere...
reglist 192.168.2.1 10099
reglist: listing rmi://192.168.2.1:10099
//192.168.2.1:10099/org.cmdline.RMIClient_192.168.2.1_1_
//192.168.2.1:10099/org.cmdline.RMIServer
That per netstat.
exec netstat | grep 192.168.2.1
30 Oct 2005 14:31:38,937 INFO - RuntimeExecutable: netstat
30 Oct 2005 14:31:46,594 INFO - Runner - [11] exec complete
System.in:16:udp4 0 0 192.168.2.1.ntp *.*
System.in:26:udp4 0 0 192.168.2.1.domain *.*
per ifconfig. (which doesn't grep, seems I have a bug there) it's my
en0 address...
back to listing RMI name binds if we default to what the getHost()
method I showed earlier returns...
reglist: listing rmi://mini-black-box.local:10099
//mini-black-box.local:10099/org.cmdline.RMIClient_192.168.2.1_1_
//mini-black-box.local:10099/org.cmdline.RMIServer
If I use what Internet Connect actually shows, partially ###'d to
disguise...
reglist 206.191.###.### 10099
reglist: listing rmi://206.191.###.###:10099
//206.191.###.###:10099/org.cmdline.RMIClient_192.168.2.1_1_
//206.191.###.###:10099/org.cmdline.RMIServer
It seems difficult for this to actually get the host wrong. Maybe
some other parts of RMI work differently though.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden