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 » Reusing Message Definition

Post new topic  Reply to topic
 Reusing Message Definition « View previous topic :: View next topic » 
Author Message
sudeepm
PostPosted: Tue Mar 11, 2008 9:39 am    Post subject: Reusing Message Definition Reply with quote

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
View user's profile Send private message
kimbert
PostPosted: Tue Mar 11, 2008 2:49 pm    Post subject: Reply with quote

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
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 » Reusing Message Definition
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.