How to alter MQ headers using Spring JmsTemplate
<p>I'm using simple Spring JmsTemplate to send messages onto a MQ.</p>

<pre><code>&lt;beans:bean id="myJMSTemplate" class="org.springframework.jms.core.JmsTemplate"&gt;
    &lt;beans:property name="connectionFactory"&gt;
        &lt;beans:ref bean="cachedConnectionFactory" /&gt;
    &lt;/beans:property&gt;
    &lt;beans:property name="pubSubDomain"&gt;
        &lt;beans:value&gt;false&lt;/beans:value&gt;
    &lt;/beans:property&gt;
    &lt;beans:property name="receiveTimeout"&gt;
        &lt;beans:value&gt;1000&lt;/beans:value&gt;
    &lt;/beans:property&gt;
&lt;/beans:bean&gt;

    &lt;int-jms:outbound-channel-adapter id="sendMessageToAvengers" channel="antEventChannel" jms-template="myJMSTemplate" destination-name='com.marvel.avengers.antMan'/&gt;
</code></pre>

<p>This works fine, however, My client application isn't able to process the message as the message format is in 'MQHRF2' by default.
How can I alter my MQ headers so as to send explicitly MQSTR format.</p>

<p>Thanks in advance.</p>