Defining unique names to Connection Factories is a VERY GOOD administration 
praxis, because when using a JNDI lookup you always get the right one, not 
a ConnectionFactory from another router that has the same name defined for 
ConnectionFactory.
And of course then you don't get "Queue not local..." messages :))
But the fact is that you have to get a ConnectionFactory from the router 
that the queue is local to.

Best regards,
         Kovi


At 22:59 18.5.01 +0200, you wrote:
>Yep, that sounds familiar. I still think you can get around it by defining
>different factories, but I've never tried it.
>
>- Brian
>
>-----Original Message-----
>From: Joe Kislo [mailto:[EMAIL PROTECTED]]
>Sent: Friday, May 18, 2001 4:38 PM
>To: [EMAIL PROTECTED]
>Cc: [EMAIL PROTECTED]
>Subject: [developers] SwiftMQ Routers
>
>
>[EMAIL PROTECTED] wrote:
> >
> > Hello..
> >
> > We're trying to connect two SwiftMQ routers on different machines. After
> > this, we're able to send messages to both routers and read messages only
> > from the remote router - however, on trying to read from the local router,
> > we get an error message that says..
> >
> > Exception occurred: javax.jms.JMSException: Queue 'testqueue@router2' is
>not
> > local! Can't create a Consumer on it!
> >
> > Here, router2 is on the machine from which the queue-receiver is being
>run.
> >
> > Any clues?
>
>         You need to connect to the server which is running the queue to
>consume
>from it.  Presumably, you are not doing that.  If you think you are,
>then you should check what server context your JNDI call is returning.
>
>         Couple weeks ago Gregor Kovae said:
>"You cannot consume messages from another router. JMS Implementation
>Notes say that :"Receiving messages from a queue is limited to the
>queue's  hosting router." It means that you have to be connected to
>hosting router."
>
>-Joe
>
>------------------------------------------------------
>SwiftMQ developers mailing list * http://www.swiftmq.com
>To unsubscribe from this list, send an eMail to
>[EMAIL PROTECTED] and write in the body of your message:
>UNSUBSCRIBE developers <your-email-address>
>Archive: http://www.mail-archive.com/developers@mail.iit.de/
>
>
>------------------------------------------------------
>SwiftMQ developers mailing list * http://www.swiftmq.com
>To unsubscribe from this list, send an eMail to
>[EMAIL PROTECTED] and write in the body of your message:
>UNSUBSCRIBE developers <your-email-address>
>Archive: http://www.mail-archive.com/developers@mail.iit.de/


------------------------------------------------------
SwiftMQ developers mailing list * http://www.swiftmq.com
To unsubscribe from this list, send an eMail to 
[EMAIL PROTECTED] and write in the body of your message:
UNSUBSCRIBE developers <your-email-address>
Archive: http://www.mail-archive.com/developers@mail.iit.de/




Reply via email to