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

  • Home
  • SEARCH
  • 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 8547401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:15:30+00:00 2026-06-11T13:15:30+00:00

In Put MQ API Exit (before or after) is there any way to get

  • 0

In Put MQ API Exit (before or after) is there any way to get the name of the target queue (i.e. the queue against which “put” call has been invoked).

I tried inquiring on Hobj parameter, but got an error saying object has not been opened with Inquiry option (which is a valid possibility).

I also checked ResolvedQName field of pPutMsgOpts parameter, but that was blank.

Is there any other means of getting the target queue name? Any idea would be much appreciated.

  • 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-06-11T13:15:32+00:00Added an answer on June 11, 2026 at 1:15 pm

    The names of the resolved queue manager and resolved queue are returned in the object descriptor accessible during the MQXR_AFTER call for the PUT1 or the OPEN.

    Have a look at the sample program `amqsaxe0.c and you will see the following function signatures:

    MQ_OPEN_EXIT OpenAfter;
    
    void MQENTRY OpenAfter   ( PMQAXP    pExitParms
                             , PMQAXC    pExitContext
                             , PMQHCONN  pHconn
                             , PPMQOD    ppObjDesc
                             , PMQLONG   pOptions
                             , PPMQHOBJ  ppHobj
                             , PMQLONG   pCompCode
                             , PMQLONG   pReason
                             )
    
    
    MQ_PUT1_EXIT Put1After;
    
    void MQENTRY Put1After   ( PMQAXP    pExitParms
                             , PMQAXC    pExitContext
                             , PMQHCONN  pHconn
                             , PPMQOD    ppObjDesc
                             , PPMQMD    ppMsgDesc
                             , PPMQPMO   ppPut1MsgOpts
                             , PMQLONG   pBufferLength
                             , PPMQVOID  ppBuffer
                             , PMQLONG   pCompCode
                             , PMQLONG   pReason
                             )
    

    The object descriptor in the before call has the object name specified by the application. The same structure in the after call has the name of the QMgr and queue that were resolved during the call. Since the PUT1 performs the open, put and close in one step it must resolve the queue name. However in the case of separate open, put(, put…), close calls the name resolution occurs only once during the open.

    Please see the samples in /var/mqm/samp or C:\Program Files (x86)\IBM\WebSphere MQ\tools\c\Samples for the amqsaxe0.c program.

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

Sidebar

Related Questions

Does anyone get the way to put draggable pushpins through the bing api using
Is there any Win32 API to put the machine into hibernate or suspend mode?
It seems Zend Gdata doesn't provide a way to interface with the PUT API
I am trying to use to a PUT call to a API using JSON.
I wrote a API EXIT for WebSphere MQ 7 on Windows, when I put
I am using Facebook Graph API and I wanted to put Like of any
Using Hbase API (Get/Put) or HBQL API, is it possible to retrieve timestamp of
I have put together an API that responds to a POST request by putting
from fabric.api import sudo, put, run def install(): run('source /home/user/.virtualenvs/demo/bin/activate') run('pip install requests') if
in this page http://api.jquery.com/category/effects/ when you put 'up'(keyboard) and 'down',then put 'enter',it will go

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.