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 find MessageSet based on message set id

Post new topic  Reply to topic
 How to find MessageSet based on message set id « View previous topic :: View next topic » 
Author Message
sweety12
PostPosted: Thu Jul 11, 2013 10:26 am    Post subject: How to find MessageSet based on message set id Reply with quote

Newbie

Joined: 29 Apr 2010
Posts: 9

Hi,
can some one please help me
Is there a easy way to find the MessageSet when I know the Message Set id
we had so many messagesets defined I don't want to go through all those individually to check the message set
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Thu Jul 11, 2013 10:30 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

What version are you on? Version numbers have four digits.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
sweety12
PostPosted: Thu Jul 11, 2013 10:47 am    Post subject: Reply with quote

Newbie

Joined: 29 Apr 2010
Posts: 9

Toolkit version 6.1.0.8
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Thu Jul 11, 2013 11:02 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Unfortunately, this version is out of support / end-of-life.

If you have the Msg Set ID, what would you do with it? Aren't you able to bring up the Msg Set Chooser, and select by Msg Set Name ?
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
sweety12
PostPosted: Thu Jul 11, 2013 11:41 am    Post subject: Reply with quote

Newbie

Joined: 29 Apr 2010
Posts: 9

Thank you lancelotlinc for the reply
Our flows are developed in this version so we are maintaining in the same version
Can you please let me know how to get the msg set chooser is there any shortcut key
And yes I couldn't guess thename for one message set id only the Id was mentioned inside flow esql code
Back to top
View user's profile Send private message
kimbert
PostPosted: Fri Jul 12, 2013 12:29 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

IBM has been recommending the use of message set names for a long time now. Message set ids are just not maintainable - as you are finding out.

This is what I would do:
1. Make a list of message set ids and their names. You should be able to do that by looking at the messageset.mset files in your message set projects. I would probably write a script to do that, but it's a one-off task so it could be done manually.
2. Go through all of your message flows and replace ids with names.

I understand that you may not have the resources to do that right now - but it's the correct technical solution, and it might save time in the long run.
Back to top
View user's profile Send private message
sweety12
PostPosted: Fri Jul 12, 2013 4:59 am    Post subject: Reply with quote

Newbie

Joined: 29 Apr 2010
Posts: 9

Thank you kimbert
Is there place where broker keeps msgset names, msg set Id I was not able to find id when I did the workspace file search

Instead of looking each and every mset file
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Jul 12, 2013 5:51 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Toolkit supplies a search function that will look inside files.
Search Menu -> File.

You can set this to search for anything in your workspace named *.mset and ask it to find the part of the file that contains the message set id.

You can then ask it to show all results, rather than opening each file individually.
Back to top
View user's profile Send private message
sweety12
PostPosted: Fri Jul 12, 2013 6:01 am    Post subject: Reply with quote

Newbie

Joined: 29 Apr 2010
Posts: 9

I did that tool kit file search I couldn't find it when I open the one of the mset file in text editor I couldn't even see the message set Id in there
Back to top
View user's profile Send private message
kimbert
PostPosted: Fri Jul 12, 2013 6:12 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

I'm not 100% sure, but I think it is the attribute 'messageSetId' on the tag 'MRMessageSetID'. Take a look at one of the message set projects, and see whether that attribute value matches up with the ID used in a flow.
Back to top
View user's profile Send private message
sweety12
PostPosted: Fri Jul 12, 2013 6:32 am    Post subject: Reply with quote

Newbie

Joined: 29 Apr 2010
Posts: 9

<?xml version="1.0" encoding="UTF-8"?>
<msgCoreModel:MRMessageSet xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:MSGModel="http://www.ibm.com/msgmodel/2003/MSGModel" xmlns:msgCoreModel="http://www.ibm.com/msgmodel/2003/MSGCoreModel" name="l_TDS_Request_MS" msetVersionNo="" currentMessageSetId="//@MRMessageSetID.0">
<MRMessageSetRep xsi:type="MSGModel:MRTDSMessageSetRep" name="TDS1" centuryWindow="53" timeZoneID="0" allowLenientDateTimes="false" messagingStandard="Unknown" groupIndicator="" groupTerminator="" tagDataSeparator="" decimalPoint="." escapeCharacter="" reservedChars="" outputCompressionTechnique="None" inputCompressionTechnique="None" defaultCCSID="367" booleanTrueRepresentation="1" booleanFalseRepresentation="0" booleanNullRepresentation="0" delimiter="" trimFixLengthString="NoTrim" deriveDefaultLengthFromLogicalType="true">
<tagLength xsi:nil="true"/>
</MRMessageSetRep>
<MRMessageSetID repositoryId="-939177620" messageSetId="1"/>
</msgCoreModel:MRMessageSet>

This is my message set in texteditor and messageSetId="1" is there for all of my messagesets but that is not actual messagesetid it is this MG1A9DG002001
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Jul 12, 2013 6:49 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Can you otherwise tell from the rest of the flow what the root element of the message being worked with is?
Back to top
View user's profile Send private message
sweety12
PostPosted: Fri Jul 12, 2013 7:21 am    Post subject: Reply with quote

Newbie

Joined: 29 Apr 2010
Posts: 9

It's just simple text with delimiter . how the root element contributes in finding the message set name and id
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Jul 12, 2013 9:04 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

If you know the fields in the message, you can compare them with your message sets and make a best guess.

I mean, if the data shows that the root element is ShipmentRecord, then you can be sure that it's not the message set that describes PaymentRecord data...
Back to top
View user's profile Send private message
sweety12
PostPosted: Fri Jul 12, 2013 9:44 am    Post subject: Reply with quote

Newbie

Joined: 29 Apr 2010
Posts: 9

Thanks every one I was able to find it messageset name
these are inside the .metadata folder of workspace
this is the folder where contains msg set name and msg set id association in the xml files (workspace location)\.metadata\.plugins\com.ibm.etools.msg.msgmodel.utilities\.project\
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 find MessageSet based on message set id
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.