change InvokerLocator to respect hostname over ip address
---------------------------------------------------------
Key: JBREM-497
URL:
http://jira.jboss.com/jira/browse/JBREM-497
Project: JBoss Remoting
Issue Type: Task
Security Level: Public(Everyone can see)
Components: general
Affects Versions: 2.0.0.Beta2 (Boon)
Reporter: Tom Elrod
Assigned To: Tom Elrod
Fix For: 2.0.0.CR1 (Boon)
Currently the InvokerLocator will convert a hostname to an ip address, in every case.
Need to change the InvokerLocator to check to see if the host value passed is actually a
host name, and if is, keep that value (instead of automatically converting to an ip
address).
If 0.0.0.0 is passed, will continue to use local ip address (and not local host name).
One of the real problems with this is what to do about the InvokerLocator's equals()
method. Currently it compares the hash code of the internal uri value. So if have
'socket://localhost:1234' and 'socket://127.0.0.1:1234' they will not
evaluate as being equal. One way to get around this would be to during runtime, check the
ip value of the host name and evaluate that way. However this will make things like
putting a InvokerLocator in a HashMap very expensive as will have to do a resolution on
the host name each time.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: