Thanks for your great help!!!!!!!

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: November 23, 2000 4:41 PM
To: [EMAIL PROTECTED]
Subject: [developers] 



> I wrote a small program to test swiftmq. I have two routers running on
> same
> host. And router1 knows nothing of router2(router2 is added
> dynamically).
> Application running on router1 just send a message to router2 and
> application on router2 will just reply.
> 
> For router1 app, I used 2 connections, one for sender and one for
> receiver.
> Normally everything is ok. But sometime I got this execption(I just
> re-run
> my program and did nothing else! Then sometimes I got this):
> ....
> javax.jms.JMSException: Queue 'router1queue@router1' is not local!
> Can't
> create a Consumer on it!
> ....

I guess go lookup a queue connection factory from your client which is 
defined both on router1 and router2 (check the JNDI aliases). Then 
sometimes you connect to router1 and sometimes to router2. Thus sometimes 
you are not local.

> And one more question, for performance ,relability and heavy
> multi-thread
> programming, should I create producer and consumer from different
> connections or same one is just fine. (Or any other things that I
> should be
> cearful!)

I would use one connection.

-- 
Andreas Mueller, [EMAIL PROTECTED], IIT GmbH, Bremen/Germany, http://www.iit.de
SwiftMQ, JMS Enterprise Messaging System, http://www.swiftmq.com


------------------------------------------------------
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