Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 943845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:30:00+00:00 2026-05-15T22:30:00+00:00

i am looking to set the MQ Header field ‘PutApplName’ in my java client

  • 0

i am looking to set the MQ Header field ‘PutApplName’ in my java client and access the same in the JMSXAppID field as a JMS header. The documents on the net talk about the MQ Header Fields getting mapped to JMS ones. Has anyone tried this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T22:30:01+00:00Added an answer on May 15, 2026 at 10:30 pm

    You must be using WMQ v7 at the client and the server to do this in a JMS-portable way. Since v6 is end-of-life next year, you are hopefully already on v7 anyway. In v7 all MQMD properties are accessible using message properties. In v6 it was necessary to drop down into WMQ-specific Java classes and it wasn’t pretty.

    That said, please take a look at JMS fields and properties with corresponding MQMD fields which maps all the MQMD fields to the corresponding JMS properties.

    There is a sample program which writes to MQMD fields and which is installed with the WMQ Client. If you installed the full WMQ client rather than just grabbing the jar files this program will reside at: C:\Program Files\IBM\WebSphere MQ\tools\jms\samples\simple\SimpleMQMDWrite.java

    The sample program uses the WMQConstants class rather than coding the string value directly. You can find the WMQConstants documented here. Within the constants you should find JMS_IBM_MQMD_PUTAPPLNAME here. The JavaDoc for this field says:

    JMS_IBM_MQMD_PUTAPPLNAME

    public static final String
    JMS_IBM_MQMD_PUTAPPLNAME

    JMS_IBM_MQMD_PUTAPPLNAME property name. Sets or gets the MQ application
    name sending the message. Set using
    setStringProperty(JmsConstants.JMS_IBM_MQMD_PUTAPPLNAME,); Get using
    getStringProperty(JmsConstants.JMS_IBM_MQMD_PUTAPPLNAME);
    Valid on a Message object.

    Note that the application must be granted +setall authority either by running in the mqm group (NOT recommended) or by using the setmqaut command. The +setall authorization must be applied both at the QMgr and at the specific queue.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking for a set of classes (preferably in the .net framework) that will
I'm looking to set up a blog. There are many what's the best blogging
I am looking to set up a Redmine server on a Windows virtual machine
I am looking for a set of nice plugins to use when developing software.
Looking for a good set of base objects to start a website up in
Looking for a RAM disk API (or equivalent set of software to implement) to
Looking for the best way to set-up an iPhone project in XCode ... namely:
Looking to have a database query set all the instance variables in a class:
I am looking for a way to dynamically set the window title for a
I am looking for an annotated data set in the customer support domain for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.