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 » How to use MQ constants in message flow

Post new topic  Reply to topic
 How to use MQ constants in message flow « View previous topic :: View next topic » 
Author Message
pcelari
PostPosted: Tue May 13, 2008 12:38 pm    Post subject: How to use MQ constants in message flow Reply with quote

Chevalier

Joined: 31 Mar 2006
Posts: 411
Location: New York

I have a compute node that propagate msg to different terminals based on the MQMD.MsgType. But it seems I can't use the MQMT_* constants in a case statement.

I also tried to cast the OutputRoot.MQMD.MsgType into integer, but it always goes to else directly. I don't want to put the numeric value in the case statement.

Am I missing anything here?

case cast(OutputRoot.MQMD.MsgType as integer)
when MQMT_REQUEST then
RETURN TRUE;
when MQMT_DATAGRAM then
propagate to terminal 'out1' message InputRoot;
return false;

...

else
return false;
end case;
_________________
pcelari
-----------------------------------------
- a master of always being a newbie
Back to top
View user's profile Send private message
pcelari
PostPosted: Tue May 13, 2008 12:47 pm    Post subject: solved Reply with quote

Chevalier

Joined: 31 Mar 2006
Posts: 411
Location: New York

it's a bug. I mistakenly put OutputRoot, although I set the mode to LocalEnvironment only. Now it works correctly.
_________________
pcelari
-----------------------------------------
- a master of always being a newbie
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » How to use MQ constants in message flow
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.