aspose file tools
The moose likes EJB and other Java EE Technologies and the fly likes Accessing Message Properties using MQMessage class Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "Accessing Message Properties using MQMessage class" Watch "Accessing Message Properties using MQMessage class" New topic
Author

Accessing Message Properties using MQMessage class

Tom Katz
Ranch Hand

Joined: Aug 19, 2002
Posts: 169
Is there any way to access *ALL* message properties of a message (or at least all their names) using the MQMessage class?

I've tried using getPropertyNames("%") hoping that that would return all the property names, but it doesn't seem to be working. Basically I need the java equivalent of MQINQMP in C.

There's the get*Property methods, but you need to know both the type and name of the property to call those.

I know I'm missing something here, please, be the first to point out my stupidity!

.. any help would be appreciated,
thanks,
Tom
Tom Katz
Ranch Hand

Joined: Aug 19, 2002
Posts: 169
Ok, I've got this working now - I think there may have been issues with getting the right GMO values set. Now that I do getPropertyNames("%") does seem to work for querying all properties in a message.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Accessing Message Properties using MQMessage class
 
Similar Threads
Changes required in MQ for UTF-8 support
Message Driven Bean with MQMessage ?
IBM MQSeries client :basic doubts
Help to create MQ message in java
JSTL: key field includes a period (.)