dcsimg
How does SwiftMq determine what hostname to use in responses to JNDI Lookups
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ray_Hori
Posted On:   Wednesday, June 19, 2002 11:31 AM

I'm running SwiftMq on Solaris 8 with a hostname of "testbox.domain.com". The jndi lookup response does not send the fully qualified hostname. Could you tell me how SwiftMq determines what hostname to use in responses to JNDI Lookups and/or is there a way on the startup to tell SwiftMq to use a specified hostname? Thanks.

Re: How does SwiftMq determine what hostname to use in responses to JNDI Lookups

Posted By:   Andreas_Mueller  
Posted On:   Wednesday, June 19, 2002 12:13 PM

A SwiftMQ router uses the normal InetAddress to get the host name. The behavior you've described can occur but I guess it's a matter on how to configure the DNS on the host (append domain or not). Anyway, you can workaround it by specifying a "connectaddress" (the IP) for the JMS listener. Actually this is intended for NAT but it works in any case. If you specify the connect address, it is passed with the connection factory you lookup by JNDI to the client and then used from it to connect to the router.
About | Sitemap | Contact