<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: How to access MQQueue level properties on behalf of a PublishJMS connection in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-access-MQQueue-level-properties-on-behalf-of-a/m-p/166996#M49725</link>
    <description>&lt;P&gt;Maybe make this your topic, try:&lt;/P&gt;&lt;PRE&gt;myQueue?targetClient=1&lt;/PRE&gt;&lt;P&gt;You could also write your own processor.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/content/kbentry/73355/adding-a-custom-processor-to-nifi-linkprocessor.html" target="_blank"&gt;https://community.hortonworks.com/content/kbentry/73355/adding-a-custom-processor-to-nifi-linkprocessor.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Dec 2016 00:12:10 GMT</pubDate>
    <dc:creator>TimothySpann</dc:creator>
    <dc:date>2016-12-22T00:12:10Z</dc:date>
    <item>
      <title>How to access MQQueue level properties on behalf of a PublishJMS connection</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-access-MQQueue-level-properties-on-behalf-of-a/m-p/166995#M49724</link>
      <description>&lt;P&gt;I’m seeing an issue where the
output sent to the IBM MQ (ESB) from our NiFi configuration sends a format
(MQHRF2) not recognized by the ESB consumer.   This is very
similar to the forum issue posted here: &lt;A href="http://forum.spring.io/forum/spring-projects/integration/jms/31307-invalid-message-received-in-remote-mq-what-will-be-the-possible-cause" target="_blank"&gt;http://forum.spring.io/forum/spring-projects/integration/jms/31307-invalid-message-received-in-remote-mq-what-will-be-the-possible-cause&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Unfortuntately I don't have the capability to get this correctly configured from the MQ Administration
side.    There doesn't appear to be a property to control this from the connection factory settings for the "com.ibm.mq,jms.MQQueueConnectionFactory" that I can find.  However, it appears the "com.ibm.mq.jms.MQQueue" counterpart will provide this capability via the "targetClient" with value "1".    &lt;/P&gt;&lt;P&gt;So I'm hoping to be able to instantiate the MQQueue  with a property or similar w/in PublishJMS or via an context parameter similar to the behavior of "SS Context Service" I believe.  Any light you can shed on this would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:51:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-access-MQQueue-level-properties-on-behalf-of-a/m-p/166995#M49724</guid>
      <dc:creator>murphy_sean</dc:creator>
      <dc:date>2022-09-16T10:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to access MQQueue level properties on behalf of a PublishJMS connection</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-access-MQQueue-level-properties-on-behalf-of-a/m-p/166996#M49725</link>
      <description>&lt;P&gt;Maybe make this your topic, try:&lt;/P&gt;&lt;PRE&gt;myQueue?targetClient=1&lt;/PRE&gt;&lt;P&gt;You could also write your own processor.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/content/kbentry/73355/adding-a-custom-processor-to-nifi-linkprocessor.html" target="_blank"&gt;https://community.hortonworks.com/content/kbentry/73355/adding-a-custom-processor-to-nifi-linkprocessor.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2016 00:12:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-access-MQQueue-level-properties-on-behalf-of-a/m-p/166996#M49725</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2016-12-22T00:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to access MQQueue level properties on behalf of a PublishJMS connection</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-access-MQQueue-level-properties-on-behalf-of-a/m-p/166997#M49726</link>
      <description>&lt;P&gt;Thank you for the quick response.  I'm needing to go the roll my own route, since the I get an error that "targetClient" is not allowed for 'XMSC_DESTINATION_NAME'. &lt;/P&gt;&lt;P&gt;When setting up a processor that uses custom java code what script engine to you specify assuming you are using on of the script processors?   Also, to you know how to inject the flowfile stream contents into the java code, since I need that instead of the line ""Hello MQSTR world via MQQueue"?&lt;/P&gt;&lt;PRE&gt;import javax.jms.Queue;
import javax.jms.QueueConnection;
import javax.jms.QueueConnectionFactory;
import javax.jms.QueueSender;
import javax.jms.QueueSession;
import javax.jms.Session;
import javax.jms.TextMessage;
import com.ibm.mq.jms.MQQueue;
import com.ibm.mq.jms.MQQueueConnectionFactory;
import com.ibm.msg.client.wmq.compat.jms.internal.JMSC;
public void testMqstrViaApiTextMessage() throws Exception {
    QueueConnectionFactory connectionFactory = new MQQueueConnectionFactory();
    ((MQQueueConnectionFactory) connectionFactory).setHostName("mfdevlcics.mayo.edu");
    ((MQQueueConnectionFactory) connectionFactory).setPort(3667);
    ((MQQueueConnectionFactory) connectionFactory).setChannel("MCF.EDT.Q10I.01");
    ((MQQueueConnectionFactory) connectionFactory).setTransportType(JMSC.MQJMS_TP_CLIENT_MQ_TCPIP);
    QueueConnection connection = connectionFactory.createQueueConnection();
    connection.start();
    QueueSession session = connection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
    Queue queue = session.createQueue("IMA.EDT.NL.007");
    // Force MQSTR format
    ((MQQueue) queue).setTargetClient(JMSC.MQJMS_CLIENT_NONJMS_MQ);
    QueueSender messageProducer = session.createSender(queue);
    TextMessage textMessage = session.createTextMessage("Hello MQSTR world via MQQueue");
    messageProducer.send(textMessage);
        session.close();
    connection.close();
}&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Dec 2016 03:33:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-access-MQQueue-level-properties-on-behalf-of-a/m-p/166997#M49726</guid>
      <dc:creator>murphy_sean</dc:creator>
      <dc:date>2016-12-22T03:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to access MQQueue level properties on behalf of a PublishJMS connection</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-access-MQQueue-level-properties-on-behalf-of-a/m-p/166998#M49727</link>
      <description>&lt;P&gt;I see getting customized processors is a bit more involved as described here: &lt;A href="https://community.hortonworks.com/articles/4318/build-custom-nifi-processor.html" target="_blank"&gt;https://community.hortonworks.com/articles/4318/build-custom-nifi-processor.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2016 03:45:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-access-MQQueue-level-properties-on-behalf-of-a/m-p/166998#M49727</guid>
      <dc:creator>murphy_sean</dc:creator>
      <dc:date>2016-12-22T03:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to access MQQueue level properties on behalf of a PublishJMS connection</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-access-MQQueue-level-properties-on-behalf-of-a/m-p/166999#M49728</link>
      <description>&lt;P&gt;In destinationName put this&lt;/P&gt;&lt;P&gt;queue:///myQueue?targetClient=1&lt;/P&gt;&lt;P&gt;That works for me. &lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 02:47:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-access-MQQueue-level-properties-on-behalf-of-a/m-p/166999#M49728</guid>
      <dc:creator>carbonecar</dc:creator>
      <dc:date>2018-03-16T02:47:40Z</dc:date>
    </item>
  </channel>
</rss>

