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 » XMS Message Property Error

Post new topic  Reply to topic
 XMS Message Property Error « View previous topic :: View next topic » 
Author Message
fishlips
PostPosted: Mon Mar 05, 2012 4:26 am    Post subject: XMS Message Property Error Reply with quote

Apprentice

Joined: 21 Dec 2011
Posts: 36

A customer has placed a DATAGRAM message on an MQ Queue which contains two properties:

fileName
mcd.Msd

This dot annotation is apparently some new heirachical property function of MQ.

Unfortunately, what I find is that, if I try to read messages with this "mcd.MSD" property, when the code hits this line:

Code:
recvMsg = Consumer.ReceiveNoWait


XMS throws the following exception:

Code:
xmsEx   
{"CWSMQ0123E:
The property name JMSType is not valid to be set to mcd://none.
The Value is not valid for the property. Check the property name value are correct."}   IBM.XMS.XMSException


I have two questions.

1 - How can I put a heirachical property such as "mcd.Msd" on a queue, using RFUtil ? (I've already tried, it didn't like the dot notation - the message contained no properties).
2 - Why does XMS think the value "none" is incorrect - that is the value of property "mcd.Msd" when viewed in MQ Explorer (see below)



Last edited by fishlips on Mon Mar 05, 2012 4:53 am; edited 1 time in total
Back to top
View user's profile Send private message
fishlips
PostPosted: Mon Mar 05, 2012 4:30 am    Post subject: Reply with quote

Apprentice

Joined: 21 Dec 2011
Posts: 36

The answer is probably somewhere on this IBM KB Document, but I don't understand it.

What is a "message domain" ?
Back to top
View user's profile Send private message
fishlips
PostPosted: Mon Mar 05, 2012 4:41 am    Post subject: Reply with quote

Apprentice

Joined: 21 Dec 2011
Posts: 36

Interestingly, if I browse the messages using RFHUtil, the usr tab, which lists the properties, only lists the first of the two named properties, "fileName", and not the second property, "mcd.Msd".

It would be perfectly fine if my code could be adjusted to also do this, as I'm not interested in the 2nd Property "mcd.Msd", only the first one, "fileName".

Any ideas how I might do this?
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Mar 05, 2012 6:06 am    Post subject: Re: XMS Message Property Error Reply with quote

Grand High Poobah

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

fishlips wrote:
This dot annotation is apparently some new heirachical property function of MQ.


Message properties are new in v7.

fishlips wrote:
1 - How can I put a heirachical property such as "mcd.Msd" on a queue, using RFUtil ? (I've already tried, it didn't like the dot notation - the message contained no properties).


The "mcd" are system properties (this one is a message set id) and used internally. All the properties you set are "usr".

fishlips wrote:
2 - Why does XMS think the value "none" is incorrect - that is the value of property "mcd.Msd" when viewed in MQ Explorer (see below)


No idea (XMS is not my thing) but I'd raise an eyebrow if I saw it. If it really was "none" (which is plausible) I'd expect the property to be missing completely.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
shashikanth_in
PostPosted: Thu Mar 29, 2012 5:50 am    Post subject: Reply with quote

Centurion

Joined: 26 Feb 2009
Posts: 123

mcd.msd is a WMQ specific attribute. mcd.msd attribute contains message type and valid message types are "jms_text", "jms_bytes", "jms_object", "jms_map", "jms_stream" and "jms_none". Any other value for this attribute will cause XMS to throw an exception. In your case you have just "none".

To set this attribute using RFHUtil, select any of the radio buttons under "JMS Message Type" in "JMS" tab.

HTH
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 » IBM MQ API Support » XMS Message Property Error
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.