|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Reusing Message Definition |
« View previous topic :: View next topic » |
Author |
Message
|
sudeepm |
Posted: Tue Mar 11, 2008 9:39 am Post subject: Reusing Message Definition |
|
|
Acolyte
Joined: 31 Jan 2008 Posts: 57
|
Hi all,
this is regarding reuse of message definition files within the same message set project. I know this can be done using the import and include functionality. The only problem that I am facing is this:
I have 2 different message definitions within the same message set project,which are having some elements common and some others unique for each. by doing include,i can reuse the common elements from one defn into the other. The problem is that both the messages are supposed to have the "same root element name", say Parentroot, in the input XML format. Consequently,i need to keep the name of the message root in the msg defns as same (Parentroot here) for both defns which the MB does not allow saying that a message set cannot have 2 elements of same name and different structure in two different definition files
A sample representation of the 2 msgs can be as given:
<Parentroot>
<Element1></Element1>
<Element2></Element2>
</Parentroot>
<Parentroot>
<Element1></Element1>
<Element3></Element3>
</Parentroot>
I hope i am able to get my problem through.Please let me know if there is a workaround for this, probably by somehow breaking up the messages into more number of definition files,etc.
thanks,
Sudeep |
|
Back to top |
|
 |
kimbert |
Posted: Tue Mar 11, 2008 2:49 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
No need for import/include here. You should use one message definition file which contains one message definition.Just put Element2 and Element3 inside a choice group. |
|
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
|
|
|
|