ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » TemporaryQueue in MQ??

Post new topic  Reply to topic
 TemporaryQueue in MQ?? « View previous topic :: View next topic » 
Author Message
spruitt
PostPosted: Thu Dec 04, 2003 12:55 pm    Post subject: TemporaryQueue in MQ?? Reply with quote

Newbie

Joined: 04 Dec 2003
Posts: 1

I pass a temporary queue to a message receiver, but get a class cast exception.

The sender does this...

TemporaryQueue tq = queueReceiverSession.createTemporaryQueue();
message.setJMSReplyTo(tq);
queueSender.send(message);

The receiver does this...

TemporaryQueue tq = (TemporaryQueue) message.getJMSReplyTo();

And a class cast exception is thrown. The class is an instance of
com.ibm.mq.jms.MQQueue

The connection factory is initialized with a ModelQueue that is defined for my QMgr. Is the TemporaryQueue interface implemented by something else? I don't have IBM's java doc handy, I am trying to locate it.

Could someone shed some light?

Thanks,

SP
Back to top
View user's profile Send private message
bower5932
PostPosted: Thu Dec 04, 2003 1:56 pm    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

Go take a look at mqjmsreq.java and mqjmssrv.java on

http://www.developer.ibm.com/tech/sampmq.html

The requester opens up a temporary queue that it expects the server to use for its replies.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » TemporaryQueue in MQ??
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.