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 » Websphere MQ Java & Message Properties

Post new topic  Reply to topic
 Websphere MQ Java & Message Properties « View previous topic :: View next topic » 
Author Message
_Angus_
PostPosted: Thu Dec 03, 2009 10:13 am    Post subject: Websphere MQ Java & Message Properties Reply with quote

Acolyte

Joined: 25 Apr 2005
Posts: 54
Location: Edinburgh

I'm trying to figure out how to set v7 message properties like "mcd.Type" in the MQMessage class - at the moment everything I try for certain reserved keys throws a property not available exception.

I understand v7 message properties have been introduced to ease things with JMS but I would still expect to be able to set what I like from the native MQ Java classes (even though I know they are build on top of the jmqi now).

Any help would be much appreciated...

Cheers,

Angus
_________________
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Angus Cooke ~ AngusSoft

Integration Development Tools
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
vmcgloin
PostPosted: Thu Dec 03, 2009 3:25 pm    Post subject: Reply with quote

Knight

Joined: 04 Apr 2002
Posts: 560
Location: Scotland

Does this help?
http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/topic/com.ibm.mq.csqzal.doc/fg20140_.htm
Back to top
View user's profile Send private message
_Angus_
PostPosted: Fri Dec 04, 2009 2:46 am    Post subject: Reply with quote

Acolyte

Joined: 25 Apr 2005
Posts: 54
Location: Edinburgh

Thanks for the link Vicky (I missed that one in my search!), that has helped a fair bit and the JMSXxxx properties I've tried setting using the real property name and not the synonym have produced the correct synonym property when I've created a new message and read it back.

However, "mcd.Type", "mcd.Set" & "mcd.Fmt" don't appear to work. They all throw the property not available exception (MQRC_PROPERTY_NOT_AVAILABLE)... and testing this further I've discovered if you set "JMSType" then that works and creates the real property "mcd.Type"!

Surely this is an MQ client bug
_________________
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Angus Cooke ~ AngusSoft

Integration Development Tools
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
fjb_saper
PostPosted: Fri Dec 04, 2009 3:53 pm    Post subject: Reply with quote

Grand High Poobah

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

_Angus_ wrote:
Thanks for the link Vicky (I missed that one in my search!), that has helped a fair bit and the JMSXxxx properties I've tried setting using the real property name and not the synonym have produced the correct synonym property when I've created a new message and read it back.

However, "mcd.Type", "mcd.Set" & "mcd.Fmt" don't appear to work. They all throw the property not available exception (MQRC_PROPERTY_NOT_AVAILABLE)... and testing this further I've discovered if you set "JMSType" then that works and creates the real property "mcd.Type"!

Surely this is an MQ client bug

I wouldn't think so. I would expect this to be the way things are designed.
Setting the JMSType may do more than just setting this field for you. It may also ensure the compatibility between multiple property values so that there is no error if the message is being consumed by a JMS app. So I would go for working as designed.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
_Angus_
PostPosted: Mon Dec 07, 2009 3:03 am    Post subject: Reply with quote

Acolyte

Joined: 25 Apr 2005
Posts: 54
Location: Edinburgh

Ok - so working as designed with a documentation update to clarify things would be nice, (an "undocumented feature" as we used to call it ).
_________________
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Angus Cooke ~ AngusSoft

Integration Development Tools
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Websphere MQ Java & Message Properties
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.