Yes, that's right. When you create a QueueSender with null, you must send
it with a Queue parameter and vice versa.
--
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:38:13 +0100
Subject: [developers] Send message to differents destinations
> I just installed pathches.
>
> I get this exception when I set the destination to null and I send A
> message
> :
>
> java.lang.UnsupportedOperationException: Cannot send unidentified on an
> unidentified QueueSender!
> at com.swiftmq.jms.QueueSenderImpl.send(QueueSenderImpl.java:65)
> at
> com.frontoo.framework.jms.util.queue.queue_Util.sendMessage(queue_Util.
> java:
> 97) at
> test.frontoo.framework.jms.test.SendReceiver.main(SendReceiver.java:54)
>
>
>
>
> -----Message d'origine-----
> De : Andreas Mueller [mailto:[EMAIL PROTECTED]]
> Envoyé : mercredi 31 janvier 2001 11:18
> À : [EMAIL PROTECTED]
> Objet : [developers] Send message to differents destinations
>
>
>
> 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/
>
>
> ------------------------------------------------------
> 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/