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 » Add a header to a message

Post new topic  Reply to topic
 Add a header to a message « View previous topic :: View next topic » 
Author Message
ahes
PostPosted: Mon Aug 26, 2002 10:43 am    Post subject: Add a header to a message Reply with quote

Newbie

Joined: 13 Jul 2002
Posts: 7

We need a subflow with the following functionality :

- Select some data from a database and construct a (fixed length) header with what we found in the database.
- Add this header to the message our flow is processing.

This subflow should work on all kind of messages (MRM, XML, BLOB etc.)


Anyone got some idea how to do this in an efficient way ?
Back to top
View user's profile Send private message
sgopal
PostPosted: Mon Aug 26, 2002 1:47 pm    Post subject: Reply with quote

Acolyte

Joined: 30 Jul 2002
Posts: 63

I guess, by this statement
Quote:
This subflow should work on all kind of messages (MRM, XML, BLOB etc.)

you mean subflow should construct Header message in MRM,XML, BLOB, etc. format.

Header message should be constructed from fields on database.

You can do the following, i would nt say this as efficient way of processing.

1. Subflow should receive the format of the header message (MRM, XML, BLOB etc.) to be constructed & any other information if required from the calling flow. (You can use environment variables also)
2. On the subflow you can have a compute node which gets the format and set the destination label variable accordingly.
3. Connect the out terminal of compute node to route to label node.
4. Have a label node and compute node for every format, where compute node does the construction of header by accessing the database.
5. Connect the out terminal of the compute node to output terminal
6. You can add the header to the message by saving the message in environment variable before calling the subflow and using the variable in the compute node.

Message flow design:

Input Terminal ----> Compute Node(Identifies the format and set label) -----> Route to label

Label Node1 ----> Compute Node 1(For XML) ----> Output Terminal
Label Node2 ----> Compute Node 2(For MRM) ----> Output Terminal
Label Node3 ----> Compute Node 3(For BLOB) ----> Output Terminal
Label Node4 ----> Compute Node 4(For ...) ----> Output Terminal
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 » Add a header to a message
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.