You should use the latest patch 1.2c. There were some changes regarding 
identified/unidentified message producers.

http://www.swiftmq.com/patches

-- 
Andreas Mueller, [EMAIL PROTECTED], IIT GmbH, Bremen/Germany, http://www.iit.de
SwiftMQ, JMS Enterprise Messaging System, http://www.swiftmq.com
-----------------------------------------------------------------------
Support SwiftMQ! PLEASE vote for SwiftMQ as "Best Java Messaging Tool":
         http://www.sys-con.com/java/readerschoice2001/


-----Original Message-----
From: Halim Boukari <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Date: Wed, 31 Jan 2001 11:07:57 +0100
Subject: [developers] Send message to differents destinations

> Hi every Body,
> 
> We are using swiftMQ as JMS provider for our application.
> 
> I want to create a MessageProducer (QueueSender, TopicPublisher) who
> can't
> send a Message to differents destinations.
> To implements this I create producer with NULL Destination : 
> QueueSender  producer =((QueueSession)session).createSender( null);
> TextMessage message = =((QueueSession)session).createTextMessage();
> message.setJMSDestination(anotherDestintation);
> producer.send(message);
> I get NullPointerException inspite in JMS API queue - the queue can be 
> null
> if this is an unidentifed producer.)
> 
> 
> To avoid the probleme I set the Destination to not null Value like this
> QueueSender  producer =((QueueSession)session).createSender( (Queue)
> destination);
> TextMessage message = =((QueueSession)session).createTextMessage();
> message.setJMSDestination(AnotherDestintation);
> producer.send(message);
> 
> but the message is send to a the Queue destination instead to another
> distination 
> 
> Wha't the problem ?
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> "...it's best to use only the lowest common denominator 
> elements on your Web pages to assure that they will 
> run on all systems. A blank page is ideal." 
> -- Mr. Bunny 
> "Mr. Bunny's Guide to ActiveX" 
> 
> 
> ------------------------------------------------------
> 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