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/