|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
adding element in compute node |
« View previous topic :: View next topic » |
Author |
Message
|
chanduy9 |
Posted: Sat Dec 22, 2001 9:50 pm Post subject: |
|
|
Disciple
Joined: 28 Nov 2001 Posts: 177 Location: USA
|
Hi,
i have a message set with 3 elements, in compute node i want to add new message/element to the existing message...for example i want to retrive new element (which is not defined in message set)from the database.i am unable to add the new element/message dynamically in the computenode.
e.g.
SET OutputRoot.MRM.add='107 newjersy';(or a database query)
where add is not defined in messageset. i tried in several way but i failed...
Thanks in advance for help.
with regards,
Chandra. |
|
Back to top |
|
 |
zpat |
Posted: Sun Dec 23, 2001 5:41 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
If you are using MRM defined messages, you can't add elements that are not defined to your message set and expect it to work.
If you want to have a defined MRM message for the output - simply create another message type within the same or different message set which does contain the additional element.
So, in the message set - add the element, create another message (type) with all the elements for the output message. Do this in the Control Center and deploy the msg-set.
In the compute node copy the input elements to the output elements, set the additional element from the database and then change the message type to the one that defines the output message.
Then the MRM will construct the output message as you want it to be.
I forget the exact ESQL statement to set the message type but something like:
Set OutputRoot.MessageType = 'xxx';
Where xxx is the message type identifier (not the name unless the same). There is an example of the correct statements in one of the manuals. |
|
Back to top |
|
 |
chanduy9 |
Posted: Sun Dec 23, 2001 3:18 pm Post subject: |
|
|
Disciple
Joined: 28 Nov 2001 Posts: 177 Location: USA
|
Hi,
i tried as you suggested..it is working..thats great..
Thnaks,
with regards,
Chandra. |
|
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
|
|
|
|