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 » MDB JMS Destination Issue

Post new topic  Reply to topic
 MDB JMS Destination Issue « View previous topic :: View next topic » 
Author Message
mqmaniac
PostPosted: Thu Aug 07, 2008 7:39 am    Post subject: MDB JMS Destination Issue Reply with quote

Master

Joined: 27 Dec 2005
Posts: 201

Hello Guru's,..

I am trying to do the following and confused a bit!!

1.Pickup a MQ Message from a Queue inside an MDB.

2.I need to read the MQMD.ReplytoQueue (which i did using the msg.getJMSReplyTo method).

NOW,..I need to send response to the Queue whichever I get from the msg.getJMSReplyTo Method above.

My confusion is on How to use it,...

I tried

Outmsg.setJMSDestination(txtmsg.getJMSReplyTo());

But this is only setting the property and is not sending the message to the queue???


Can anyone guide on how to make use of the
"msg.getJMSReplyTo Method "

Thanks is Advance!!
Back to top
View user's profile Send private message
mqmaniac
PostPosted: Thu Aug 07, 2008 8:18 am    Post subject: Reply with quote

Master

Joined: 27 Dec 2005
Posts: 201

I tried the follwoing and it failed,..

queue = (Queue) msg.getJMSReplyTo();

Can anyone help!!!!!
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Aug 07, 2008 2:32 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

mqmaniac wrote:
I tried the follwoing and it failed,..

queue = (Queue) msg.getJMSReplyTo();

Can anyone help!!!!!

Get back to your JMS Tutorial!
Sender mysender = mysession.createSender(null);
mysender.send(mymsg, myreplytodest);

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » MDB JMS Destination Issue
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.