|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
.NET client (XMS) GetStringProperty() call fails |
« View previous topic :: View next topic » |
Author |
Message
|
mrmanley |
Posted: Wed Sep 22, 2010 10:08 am Post subject: |
|
|
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 |
|
 |
shashikanth_in |
Posted: Wed Sep 29, 2010 7:44 pm Post subject: |
|
|
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 |
|
 |
fjb_saper |
Posted: Wed Sep 29, 2010 7:57 pm Post subject: |
|
|
 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 |
|
 |
|
|
|
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
|
|
|
|