protocol7 / wmq-util

Automatically exported from code.google.com/p/wmq-util
0 stars 0 forks source link

Setting MQMD.ReplyToQ #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

We want to use wmq-util but have problems getting MQMD.ReplyToQ set but
maybe we are missing something, or?!

Source snippet:
-------------------------------
MQMessage message = new MQMessage();
MQRFH2 rfh2 = new MQRFH2();
rfh2.setVersion(2);
rfh2.setFormat("MQSTR ");
rfh2.setNameValueCodedCharSetId(1208);

JmsArea jms = new JmsArea();
jms.setReplyTo("queue:///TEST.QUEUE");
rfh2.addArea(jms);

McdArea mcd = new McdArea();
mcd.setMessageType("jms_text");
rfh2.addArea(mcd);

rfh2.toMessage(message);
message.writeUTF("Hello World!");
-------------------------------

Best Regards
Joacim Järkeborn

Original issue reported on code.google.com by 4integra...@gmail.com on 2 Dec 2008 at 4:59

GoogleCodeExporter commented 9 years ago
A thing that came to my mind..

When a JMS message is created and sets i.e. JMSReplyTo, what component will 
set/map
to MQMD.ReplyToQ ? Is it WMQmgr or JMS-MQ API? If it's JMS-MQ API I suspect 
that we
need to explicit set: 

message.replyToQueueName = "TEST.QUEUE";

since we in this are using WMQ Java Client API instead of JMS API.

Any idea?

Regards
Joacim

Original comment by 4integra...@gmail.com on 2 Dec 2008 at 8:09