James Wu wrote:
> 
> I installed swiftMQ on Win2000. It works fine all most. Very very nice
> system.
> 
> But I got a small problem. When I create the TopicSubcriber:
> 
> topicSubscriber=topicSession.createSubscriber(topic, null, true);
> 
> I just do not want the sub. to receive messaged sent by itself so I set
> noLocal to true. But my sub. still receives self-messages. Why or we I did
> wrong?

The 'noLocal' decision takes place on a clientId base which is an
attribute of the connection. You can set the clientId by yourself with
"connection.setClientID(<someid>)" as the first method call just after
creating the connection. If you don't set the clientId, a random one
will be assigned. Both, the publisher and subscriber must use the same
connection. Are you using the same connection for both? If yes, I will
have to check if this is a bug. But if you set a clientId explicitly, it
should work as expected.

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




Reply via email to