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 » Is there an easy way to determine bytecode representation ?

Post new topic  Reply to topic
 Is there an easy way to determine bytecode representation ? « View previous topic :: View next topic » 
Author Message
AlexeiSkate
PostPosted: Wed Aug 21, 2002 10:28 am    Post subject: Is there an easy way to determine bytecode representation ? Reply with quote

Centurion

Joined: 10 Apr 2002
Posts: 123

Hi,

In an application that uses MQGet, one can assign a messageId the following way:
String messageId = "Hello World";
MQMessage myMsg.messageId = messageId.getBytes();
...

Is there a way to perform similar logic within a computeNode ? Let say the compute node get an input XML message, and it wants to assign it a message id based on the type of message it is. How do I assign the id in the bytecode format. I would also like to have different msg flows retrieving that msg according to its MsgId. How can I determine the exact bytecode pattern of the MsgId so that I can specify it on the InputNode "Select Msg based on MsgId" property box of the various msg flows ?

-thanks,
Alex
Back to top
View user's profile Send private message
kirani
PostPosted: Wed Aug 21, 2002 4:51 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Alex,

In a compute node, you can assign message id to your output message using following ESQL,

Code:

DECLARE msgid CHAR;
SET msgid = '<your_24_char_long_msg_id_>';
SET OutputRoot.MQMD.MsgId = CAST (msgid AS BLOB CCSID InputRoot.Properties.CodedCharSetId);


While specifying MsgId in MQInput node, you should specify it in following format:
X'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
where xxxx... is a hex value of your message id.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Is there an easy way to determine bytecode representation ?
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.