• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
  • salvin francis
  • Frits Walraven
  • Piet Souris

Accessing Message Properties using MQMessage class

Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
Tom Katz
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Grow a forest with seedballs and this tiny ad:
the value of filler advertising in 2020
    Bookmark Topic Watch Topic
  • New Topic