My original question was if ActiveMQ supported a flag like java.rmi.server.hostname to override the IP machine / IP that the JVM identifies itself during client-server communication. A simple response of "No" would have ended this thread :)
On 1/22/07, Christopher G. Stach II <[EMAIL PROTECTED]> wrote:
InetAddress inetaddress = InetAddress.getLocalHost(); > String hostName = inetaddress.getHostName(); > > the hostName returned is still "MachineA" and not the one overridden by " > java.rmi.server.hostname". What hostname is being sent in the RMI packets? Your presumption that a getLocalHost call outside of the RMI implementation matters is flawed. > So I think that ActiveMQ is just calling InetAddress.getLocalHost() which > does not end up using the "java.rmi.server.hostname" override. AMQ drives Sun's RMI implementation?
Bruce's respose led me to believe that java.rmi.server.hostname was not specific to Java's RMI.