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 8207257
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T08:56:24+00:00 2026-06-07T08:56:24+00:00

I have something like Message forwarder / router for MQ messages. I’m trying to

  • 0

I have something like Message forwarder / router for MQ messages. I’m trying to forward messages based on some rules. This forwarding is simply done by receiving message from one queue, creating a new message (with same or modified content) and putting it to another queue. The existence of the forwarder should be as transparent as possible.

At the moment my problem is PutApplicationType message property. It looks like I cannot change this property. I have both .NET and Java sample implementation and I’m trying to simply use:

MQMessage forwardedMessage = new MQMessage();
forwardedMessage.putApplicationType = CMQC.MQAT_UNIX;

It doesn’t matter what value I try to use. .NET version always sends message with MQAT_DEFAULT / MQAT_WINDOWS_NT and Java version always sends message with MQAT_JAVA.

Is it possible to change this header? If not can it cause some issue to legacy systems if I don’t change the value? Why is it not possible to change the value?

Btw. forwarding original message also doesn’t work – my application will change PutApplicationType property as well.

Edit: If I use native C API will I be able to control content of this property?

  • 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-07T08:56:26+00:00Added an answer on June 7, 2026 at 8:56 am

    As T.Rob, said you need to read the manaul (WMQ Using Java or WMQ Using .Net). Forwarding a message is not a simple task as you listed above. There are several options/parameters that need to be set correctly.

    Here is a Java code snippet with all of the exception handling remove:

    int openInputOptions  = MQC.MQOO_INQUIRE + MQC.MQOO_FAIL_IF_QUIESCING + MQC.MQOO_INPUT_SHARED + MQC.MQOO_SAVE_ALL_CONTEXT;
    int openOutputOptions = MQC.MQOO_OUTPUT + MQC.MQOO_FAIL_IF_QUIESCING + MQC.MQOO_PASS_ALL_CONTEXT;
    
    MQQueue _inQ = _qMgr.accessQueue( inQueueName, openInputOptions, null, null, null );
    
    MQQueue _outQ = _qMgr.accessQueue( outputQueueName, openOutputOptions, null, null, null );
    
    MQGetMessageOptions getOptions = new MQGetMessageOptions();
    getOptions.options = MQC.MQGMO_NO_WAIT + MQC.MQGMO_FAIL_IF_QUIESCING;
    
    MQMessage mqMsg = new MQMessage();
    
    mqMsg.correlationId = MQC.MQCI_NONE;
    mqMsg.messageId = MQC.MQMI_NONE;
    
    _inQ.get(mqMsg, getOptions);
    
    MQPutMessageOptions pmo = new MQPutMessageOptions();
    pmo.options =  MQC.MQPMO_FAIL_IF_QUIESCING + MQC.MQPMO_PASS_ALL_CONTEXT;
    pmo.contextReference = _inQ;
    
    _outQ.put(mqMsg, pmo);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have something like a message div that will contain some info of sorts.
I have something like this: function showFunction () { // need position and place
I have something like this: <?xml version=1.0 encoding=utf-8?> <Data> <ConfigDatas> <ArrayOfConfigData xmlns:i=http://www.w3.org/2001/XMLSchema-instance xmlns=http://schemas.datacontract.org/2004/07/BTTest.Models> <ConfigData>
I have something like this: [{'date': 1, 'value':5}, {'date':2,'value':3}, ...] and want to map
I have something like this : code.js var params = { option1 : encodeURIComponent(text\n
I have something like this: Map<String, String> myMap = ...; for(String key : myMap.keySet())
I have something like this set up: class CategoryPage (webapp.RequestHandler): def get(self): ** DO
I'm trying to work with exceptions. So I have something like: If something bad
I have something like this in my code: String boundary = thisIsMyBoundaryString; StringBuilder body
I have something like this: void Test(void) { char errorMessage[256]; spintf(errorMessage,... blablabla); throw new

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.