|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
SET Message DOMAIN |
« View previous topic :: View next topic » |
Author |
Message
|
matuwe |
Posted: Tue Apr 20, 2010 7:50 am Post subject: SET Message DOMAIN |
|
|
 Master
Joined: 05 Dec 2007 Posts: 296
|
I need to change the message domain in ESQL. There used to be a OutputRoot.Properties.MessageDomain in 6.1 or 6.0 can't remember. But now I cannot find it.
How can I change the message domain in ESQL?
I am using Broker 7
Thanks  |
|
Back to top |
|
 |
kimbert |
Posted: Tue Apr 20, 2010 9:15 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
There used to be a OutputRoot.Properties.MessageDomain in 6.1 or 6.0 can't remember. But now I cannot find it. |
There never was. The domain is not set in the Properties folder - it is an intrinsic property of each syntax element in the message tree. Usually, the last child of the root node is the body of the message, and it sets the domain for all of its children. When you create a syntax element using the CREATE statement, it inherits its domain from its parent, unless you specify a DOMAIN clause. If the parent does not have a domain, or there is no parent, and you don't specify a DOMAIN clause, then the syntax element is not associated with a parser. That leads to 'interesting' problems when people copy stuff into the environment or local environment without giving the root node a domain. |
|
Back to top |
|
 |
matuwe |
Posted: Tue Apr 20, 2010 11:06 pm Post subject: |
|
|
 Master
Joined: 05 Dec 2007 Posts: 296
|
Owww that is interesting ....
Maybe I am approching it incorectly. I need to receive data as BLOB and change the domain to MRM, set the messageset and format, then have the output root having a new domain. This is axactly like I would use the reset content descritor, but only using ESQL.
SO my question really is how do I change OutputRoot.MRM =InputRoot.BLOB.BLOB , is this possible... , or do I have to create , paurse and put the data back into OutputRoot  |
|
Back to top |
|
 |
smdavies99 |
Posted: Tue Apr 20, 2010 11:51 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
matuwe wrote: |
or do I have to create , paurse and put the data back into OutputRoot  |
Yes, well sort of...
It is not that hard you know.
MRM is a parsed format domain. i.e. it explicitly relies upon a message model. (XML can be free format, self describing)
If you have one then passing the message through a RCD node (or doing it manually will setup the OutputRoot ready to be parsed when you use it. This might be in a compute node or in some form of output node. If that is all you want to do then that's it.
You might like to force the parse on the message especially if your output is in CWF or TDS formats. This is just in case there is something wrong with the incoming message. If you don't care then just setup the OutputRoot ready for, well, Output with an RCD node.
You can Create Parse etc if you want to but it is not really needed. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
kimbert |
Posted: Wed Apr 21, 2010 12:25 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
I need to receive data as BLOB and change the domain to MRM, set the messageset and format, then have the output root having a new domain. This is axactly like I would use the reset content descritor, but only using ESQL. |
If the BLOB is the input bit stream, then smdavies99 is correct; the RCD node is the easiest way to do it.
If the BLOB is being received in one of the fields of the input message, and you want to extract it, parse it and put the result into OutputRoot then you need CREATE...PARSE DOMAIN 'MRM' ( and the usual SET, TYPE, FORMAT parameters ). |
|
Back to top |
|
 |
matuwe |
Posted: Wed Apr 21, 2010 3:57 am Post subject: |
|
|
 Master
Joined: 05 Dec 2007 Posts: 296
|
CREATE...PARSE DOMAIN 'MRM' ( and the usual SET, TYPE, FORMAT parameters ).
Works like A CHARM
Thanks guys  |
|
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
|
|
|
|