How to set ApplicationIdData using MQQueueConnectionFactory?
<p>Trying to figure out the camel/Spring configuration to set ApplicationIdData  using JMS.</p>

<p>I know the java way to do it as below, I set MQOO_SET_IDENTITY_CONTEXT using below</p>

<pre><code>int putOptions =  MQConstants.MQPMO_SET_IDENTITY_CONTEXT;
pmo.options =putOptions;
</code></pre>

<p>and then i set applicationIdData  as:</p>

<pre><code>MQMessage msg = new MQMessage();
msg.applicationIdData = "SomeId";
msg.writeString(qmessage);
</code></pre>

<p>queue.put(msg, pmo);</p>

<p><strong>Question is, How do I set applicationIdData using JMS/camel/Spring configuration</strong>.
Below is my current camel configuration.</p>

<pre><code>&lt;bean class="org.apache.camel.component.jms.JmsComponent" id="jmsConnection"&gt;
        &lt;property name="connectionFactory" ref="mqConnectionFactoryWrapper" /&gt;
        &lt;property name="acknowledgementModeName" value="AUTO_ACKNOWLEDGE" /&gt;
    &lt;/bean&gt;

    &lt;bean id="connectionFactory" class="com.ibm.mq.jms.MQQueueConnectionFactory"&gt;
        &lt;property name="hostName" value="${HOSTMNAME}" /&gt;
        &lt;property name="port" value="${PORT}" /&gt;
        &lt;property name="queueManager" value="${MQ_QMNAME}" /&gt;
        &lt;property name="channel" value="${MQ_INTERNAL_CHANNEL}" /&gt;
        &lt;property name="transportType" value="1" /&gt;

        &lt;!-- Transport type 1 means pure TCP/IP without any local client --&gt;
    &lt;/bean&gt;

    &lt;bean id="mqConnectionFactoryWrapper"
        class="org.springframework.jms.connection.CachingConnectionFactory"&gt;
        &lt;property name="targetConnectionFactory" ref="connectionFactory" /&gt;
        &lt;property name="sessionCacheSize" value="500" /&gt;
    &lt;/bean&gt;

    &lt;bean id="jmsTransactionManager"
        class="org.springframework.jms.connection.JmsTransactionManager"&gt;
        &lt;property name="connectionFactory" ref="mqConnectionFactoryWrapper" /&gt;
    &lt;/bean&gt;

    &lt;bean id="PROPAGATION_REQUIRES_NEW" 
class="org.apache.camel.spring.spi.SpringTransactionPolicy"&gt;
        &lt;property name="transactionManager" ref="jmsTransactionManager" /&gt;
        &lt;property name="propagationBehaviorName" value="PROPAGATION_REQUIRES_NEW" /&gt;
    &lt;/bean&gt;
</code></pre>

<p>I have gone through below links, couldnt find the right answer</p>

<p><a href="http://forum.spring.io/forum/spring-projects/integration/jms/97168-how-to-set-wmqconstants-wmq-mqmd-read-enabled-in-spring" rel="nofollow">http://forum.spring.io/forum/spring-projects/integration/jms/97168-how-to-set-wmqconstants-wmq-mqmd-read-enabled-in-spring</a></p>

<p><a href="http://www.ibm.com/support/knowledgecenter/SSFKSJ_7.0.1/com.ibm.mq.csqzaw.doc/jm41030_.htm" rel="nofollow">http://www.ibm.com/support/knowledgecenter/SSFKSJ_7.0.1/com.ibm.mq.csqzaw.doc/jm41030_.htm</a></p>

<p><a href="https://www.ibm.com/support/knowledgecenter/en/SSFKSJ_9.0.0/com.ibm.mq.dev.doc/q032010_.htm" rel="nofollow">https://www.ibm.com/support/knowledgecenter/en/SSFKSJ_9.0.0/com.ibm.mq.dev.doc/q032010_.htm</a></p>