|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Add a header to a message |
« View previous topic :: View next topic » |
Author |
Message
|
ahes |
Posted: Mon Aug 26, 2002 10:43 am Post subject: Add a header to a message |
|
|
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 |
|
 |
sgopal |
Posted: Mon Aug 26, 2002 1:47 pm Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|