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 » conversion C to Java

Post new topic  Reply to topic
 conversion C to Java « View previous topic :: View next topic » 
Author Message
meetgaurav
PostPosted: Mon Oct 20, 2008 10:43 pm    Post subject: conversion C to Java Reply with quote

Voyager

Joined: 08 Sep 2008
Posts: 94

MsgDesc.MsgType = MQMT_REPLY // C program

message.setJMSType("MQMT_REPLY"); // Java


Both are SAME

Could you please confirm..
Back to top
View user's profile Send private message
David.Partridge
PostPosted: Mon Oct 20, 2008 11:55 pm    Post subject: Reply with quote

Master

Joined: 28 Jun 2001
Posts: 249

I *think* that the correct incantation is:

message.setIntProperty("JMS_IBM_MsgType", MQC.MQMT_REPLY);
_________________
Cheers,
David C. Partridge
Back to top
View user's profile Send private message
meetgaurav
PostPosted: Tue Oct 21, 2008 12:21 am    Post subject: Reply with quote

Voyager

Joined: 08 Sep 2008
Posts: 94

U R rite David, Yes this works Fine....
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Oct 21, 2008 1:31 am    Post subject: Reply with quote

Grand High Poobah

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

Usually I never touch this property in JMS. Setting the JMSReplyTo Destination usually does that for me;
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
meetgaurav
PostPosted: Wed Oct 22, 2008 8:31 am    Post subject: Reply with quote

Voyager

Joined: 08 Sep 2008
Posts: 94

If I use message.getJMSReplyTo(). Then no need to write the secondline rite???

message.setIntProperty("JMS_IBM_MsgType", MQC.MQMT_REPLY);
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Oct 22, 2008 10:19 am    Post subject: Reply with quote

Grand High Poobah

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

meetgaurav wrote:
If I use message.getJMSReplyTo(). Then no need to write the secondline rite???

message.setIntProperty("JMS_IBM_MsgType", MQC.MQMT_REPLY);

No you need to use :
message.setJMSReplyTo(myreplytoDestination);

Have fun
_________________
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 » conversion C to Java
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.