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 » Sending Messages using JMSReplyTo

Post new topic  Reply to topic
 Sending Messages using JMSReplyTo « View previous topic :: View next topic » 
Author Message
amudham1
PostPosted: Sun Aug 27, 2006 9:23 am    Post subject: Sending Messages using JMSReplyTo Reply with quote

Newbie

Joined: 19 Aug 2006
Posts: 3

Hello All,

I am injecting messages to a Q using the RFHUtil with reply queue manager and queue name. I am retriving the message using MDB (using WAS 6.0 RAD version) with ListenerPort.

From the Message so retrived I am sending back the to the reply queue using

getJMSReplyTo() method.


I am using the following code to writing to the replyTo Queue.


Code:

ConnectionFactory cf = (ConnectionFactory) ic.lookup("AAA");
         
Connection conn = cf.createConnection();

conn.conn.start();

Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
         
Destination replyTo = msg.getJMSReplyTo();
           
MessageProducer producer = session.createProducer(replyTo);
           
TextMessage reply = session.createTextMessage(replyMsg);

producer.send(reply);

producer.close();
conn.stop();



Query:

1. Is there any way replyTo the qname without using the javax.jms.ConnectionFactory?

2. If not, how to configure the javax.jms.ConnectionFactory which accepts dynamic qname using the getJMSReplyTo header.

This is a very critical requirement. Expecting your valuabe posts.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sun Aug 27, 2006 12:50 pm    Post subject: Reply with quote

Grand High Poobah

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

You do not specify version of MQ and Environment.
MQ V6 had a default property on the qcf targetClientMatching=true

Could you be more specific in your question? It seems that you do everything by the book. I do not quite understand your question...


_________________
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 » Sending Messages using JMSReplyTo
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.