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 » WebSphere Message Broker (ACE) Support » Converting a datagram into a request

Post new topic  Reply to topic
 Converting a datagram into a request « View previous topic :: View next topic » 
Author Message
Djeyli
PostPosted: Wed Oct 09, 2002 12:27 am    Post subject: Converting a datagram into a request Reply with quote

Apprentice

Joined: 03 Apr 2002
Posts: 28
Location: New Zealand

Hi there

I have an application which can only send datagrams (This cannot be changed). I need to convert this to a request message within the broker.

One suggestion was to add a compute node with the following:

SET OutputRoot = InputRoot;
-- Enter SQL below this line. SQL above this line might be regenerated, causing any modifications to be lost.
SET OutputRoot.MQMD = InputRoot.MQMD;
SET OutputRoot.MQMD.MsgType = 1;

This however is not successful. The message remains a datagram.

Does anyone have another solution/suggestion for this ?
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
vmcgloin
PostPosted: Wed Oct 09, 2002 3:31 am    Post subject: Reply with quote

Knight

Joined: 04 Apr 2002
Posts: 560
Location: Scotland

Try specifying MQMT_REQUEST instead of the number.
And/or, I think you need to set header values before copying the rest of the message, so just set the compute node to copy headers. (I always get caught out with that.)

SET OutputRoot.MQMD.MsgType=MQMT_REQUEST;
SET OutputRoot.XML=InputBody;

Hope that helps,
Vicky
Back to top
View user's profile Send private message
Djeyli
PostPosted: Wed Oct 09, 2002 4:35 am    Post subject: Works now Reply with quote

Apprentice

Joined: 03 Apr 2002
Posts: 28
Location: New Zealand

Hi Vicky

Thanks for the help - it works perfectly now.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Converting a datagram into a request
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.