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 » IBM MQ API Support » Apply selection string using C# for message

Post new topic  Reply to topic
 Apply selection string using C# for message « View previous topic :: View next topic » 
Author Message
rs
PostPosted: Fri Dec 14, 2012 12:54 am    Post subject: Apply selection string using C# for message Reply with quote

Newbie

Joined: 10 Dec 2012
Posts: 8

How to apply selection string using C#?

I have set message property using SetXXX() method.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Fri Dec 14, 2012 6:02 am    Post subject: Reply with quote

Jedi Knight

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

Are you asking how to select a message out of a queue by MQMD.MsgId? Your question is unclear.
_________________
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
rs
PostPosted: Sun Dec 16, 2012 10:12 pm    Post subject: Reply with quote

Newbie

Joined: 10 Dec 2012
Posts: 8

I have added property to message using
SetStringProperty("Color","Black") method and insert this message in queue.
There are many different messages in queue with different property set Color key.

how to apply selection string to get message which has property as Color is Black using C#?
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Dec 17, 2012 5:29 am    Post subject: Reply with quote

Grand High Poobah

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

rs wrote:
how to apply selection string to get message which has property as Color is Black using C#?


Using the method supplied in the InfoCenter. Seriously.

I would assume you've already found that, and tried to apply it, so perhaps you could post a few details about your code and the results you're seeing?

Or maybe just try the InfoCenter rather than trying to hit the magic combination of letters in your code & post back here if you continue to have problems.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
rs
PostPosted: Mon Dec 17, 2012 8:06 pm    Post subject: Reply with quote

Newbie

Joined: 10 Dec 2012
Posts: 8

Thank you Mr. Vitor.

As per infocenter i assigned query for selection in SelectionString property of MQObjectDescriptor class.

But how to apply the object of MQObjectDescriptor to Queue for property based selection.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Dec 18, 2012 3:40 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

rs wrote:
Thank you Mr. Vitor.

As per infocenter i assigned query for selection in SelectionString property of MQObjectDescriptor class.

But how to apply the object of MQObjectDescriptor to Queue for property based selection.


Show us how you did that...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Apply selection string using C# for 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.