dcsimg
How to ensure getting the local ConnectionFactory ?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Karl_Cassaigne
Posted On:   Tuesday, August 30, 2005 05:23 PM

When a client application establish a connection to a SwiftMQ router, it first need to supply an InitialContext specifying the URL of the router and then lookup the ConnectionFactory object. The SwiftMQ documentation states that for any JNDI lookup against SwiftMQ, each router in the network as a chance to answer the broadcast. Considering the ConnectionFactory lookup, if the object location is not set, then there is a chance that the ConnectionFactory returned could belong to a router that is not the one specified in the InitialContext at first. If the InitialContext specify more than one router to connect to, how can the client application be sure to obtain the local ConnectionFactory (the one of the connected router)   More>>

When a client application establish a connection to a SwiftMQ router, it first need to supply an InitialContext specifying the URL of the router and then lookup the ConnectionFactory object.



The SwiftMQ documentation states that for any JNDI lookup against SwiftMQ, each router in the network as a chance to answer the broadcast. Considering the ConnectionFactory lookup, if the object location is not set, then there is a chance that the ConnectionFactory returned could belong to a router that is not the one specified in the InitialContext at first.



If the InitialContext specify more than one router to connect to, how can the client application be sure to obtain the local ConnectionFactory (the one of the connected router) when doing the lookup when it does not know on which router it is connected to at this time ???



In other words, is there a special notation for the location part of the object naming which would mean "on the currently connected router" ? something like "plainsocket@localrouter" ;-)



Thanks in advance for your help

   <<Less

Re: How to ensure getting the local ConnectionFactory ?

Posted By:   Andreas_Mueller  
Posted On:   Wednesday, August 31, 2005 02:38 AM

I think you are hitting a gap here. You are currently not able to retrieve the connected router out of an InitialContext. We will have to add this information for the next release. Sorry.
About | Sitemap | Contact