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 » How to reuse a complex type from another message

Post new topic  Reply to topic
 How to reuse a complex type from another message « View previous topic :: View next topic » 
Author Message
KIT_INC
PostPosted: Wed Feb 15, 2012 8:34 am    Post subject: How to reuse a complex type from another message Reply with quote

Knight

Joined: 25 Aug 2006
Posts: 589

I have a message MSG1 with a large field of 1500 bytes. I have another message MSG2 which is 1500 bytes with all the fields defined in a message definition file.
MSG1.msxd
MSG1
F1
F2
:
Data (fix length 1500)
:
Fn

MSG2.mxsd
F1
F2
:
Fn
(1500 bytes)

There is a TYPE of MSG2

I want to update the Data field of my MSG1.msxd with the definition of MSG2. With my limited messsageset building experience , I know that I can update Data to say it is of TYPE MSG2. But the TYPE MSG2 is in another message defition file. I can not find a way to copy the type from one to another.

I can recreate a new MSG1 from scratch. But that seems to be unnecessary.

What is the right way to do this ?
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Feb 15, 2012 8:54 am    Post subject: Re: How to reuse a complex type from another message Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

KIT_INC wrote:
I can recreate a new MSG1 from scratch. But that seems to be unnecessary.


It is; as a bare minimum you can create the new msg set based on the existing one hence including the type.

You should be able to use the same type in 2 messages in the same message set. If the messages are in 2 different message sets why do they have a type in common?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
KIT_INC
PostPosted: Wed Feb 15, 2012 9:08 am    Post subject: Reply with quote

Knight

Joined: 25 Aug 2006
Posts: 589

Thanks Vitor, you are right, I should be able to share types between messages within the same message set. I found the MSG2 Type in the drop down. I must not be looking careful enough.
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 » How to reuse a complex type from another message
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.