SwiftMQ Router naming algorithm
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Trent_Schroeter
Posted On:   Monday, March 4, 2002 04:37 PM

Hi Andreas, I was wondering if you could explain the algorithm that the Router (for 2.1.3) uses to choose its router name, if it is not specified in the router configuration file. We need this information to ensure that our JNDI connections via plainsocket@routername will succeed. We assumed that it used something like InetAddress.getLocalHost().getHostName() but it doesn't always seem to be consistent wrt uppercase or lowercase, and sometimes (on Win2K) it chooses localhost. Could you please enlighten us on how it determines the router name to use. Regards, Trent    More>>

Hi Andreas,


I was wondering if you could explain the algorithm that the Router (for 2.1.3) uses to choose its router name, if it is not specified in the router configuration file.


We need this information to ensure that our JNDI connections via plainsocket@routername will succeed.


We assumed that it used something like

			
InetAddress.getLocalHost().getHostName()

but it doesn't always seem to be consistent wrt uppercase or lowercase, and sometimes (on Win2K) it chooses localhost.


Could you please enlighten us on how it determines the router name to use.


Regards,
Trent

   <<Less

Re: SwiftMQ Router naming algorithm

Posted By:   Andreas_Mueller  
Posted On:   Tuesday, March 5, 2002 01:54 AM

In 2.1.3 the router name is optional. If not set, it is determined that way:



InetAddress.getByName(InetAddress.getLocalHost().getHostAddress()).getHostName();



The router name is mandatory in 3.x, however, you can use the same name for all routers (hence, a single config) when using multicast. It works also now when using temp topics over multicast with the same router name.
About | Sitemap | Contact