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 Java / JMS » .NET client (XMS) GetStringProperty() call fails

Post new topic  Reply to topic Goto page Previous  1, 2
 .NET client (XMS) GetStringProperty() call fails « View previous topic :: View next topic » 
Author Message
mrmanley
PostPosted: Wed Sep 22, 2010 10:08 am    Post subject: Reply with quote

Newbie

Joined: 20 Sep 2010
Posts: 9

I've experimented with a whole bunch of different scenarios, and here is what I've discovered:

I *can* see the user property when I do a Receive() of a message, but *not* when I browse! I.e., when I acquire a pointer to a message via the CreateBrowser() method of the session, I don't get any user-defined properties in the message! However, I *do* get the JMS/JMSX properties.

fjb_saper wrote:
I'd say open a PMR.
The only other thing I can think of, would be to get an enumeration of the property keys of the message and get the value for each of them.
You might find that you're really not looking for "Foo" but you're looking for "Foo "...
Back to top
View user's profile Send private message
shashikanth_in
PostPosted: Wed Sep 29, 2010 7:44 pm    Post subject: Reply with quote

Centurion

Joined: 26 Feb 2009
Posts: 123

Works fine for me. I am able to get the property from a browsed message.


Here is the code I have producer and browser:

Producer:
textMessage = sessionWMQ.CreateTextMessage();
textMessage.Text = simpleMessage;
textMessage.SetStringProperty("FOOO", "BAR1");
producer.Send(textMessage);

Browser:
queueEnum = queueBrowser.GetEnumerator();
while (queueEnum.MoveNext())
{
textMessage = (ITextMessage)queueEnum.Current;
String propVal = textMessage.GetStringProperty("FOOO");
Console.Write(propVal);
}
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Sep 29, 2010 7:57 pm    Post subject: Reply with quote

Grand High Poobah

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

So what result did your PMR yield?
_________________
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 Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » IBM MQ Java / JMS » .NET client (XMS) GetStringProperty() call fails
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.