Hi Santhosh, in your Processor set the header on the In message, but also, if you're not doing anything else in the Processor but setting the header value to a constant value, you can use the setHeader method of the Java DSL.
>From the IBMMQ side, make sure that you've understand the prerequisites for setting ApplIdentityData[1] zoran [1] https://www.ibm.com/support/knowledgecenter/SSFKSJ_9.0.0/com.ibm.mq.dev.doc/q032350_.htm On Fri, Feb 10, 2017 at 10:19 PM, santhoshks <[email protected]> wrote: > We are trying to read the JMS_IBM_MQMD_ApplIdentityData message property and > set it on the response message. We are using IBM MQ. The code I have > implemented is not reading or writing this property on IBM MQ. Application > runs on tomcat. Our MQ connection information is in the context.xml. Here is > the code we are trying to write the property on the way out. > > from("direct:toIBMMQ") > .bean(WorkFlowLogger.class, > "logInfo('" > + className > + > "|ROUTE=toBXQueuePitchTransaction;STATE=OPERATION_BEGIN')") > .setExchangePattern(ExchangePattern.InOnly) > .process(new Processor() { > > @Override > public void process(Exchange exchange) throws Exception > { > > exchange.getOut().setHeader("JMS_IBM_MQMD_ApplIdentityData","MyApplIdentityData"); > > } > }) > > .to("myJms:queue:myQueue?maxConcurrentConsumers=30&testConnectionOnStartup=true&transacted=false"); > > We are using org.apache.camel.component.jms.JmsComponent. spring config > <bean id="myJms" class="org.apache.camel.component.jms.JmsComponent"> > <property name="connectionFactory" > ref="bxCredentialsConnectionFactory" /> > > </bean> > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Unable-to-set-JMS-IBM-MQMD-ApplIdentityData-using-camel-tp5793780.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Zoran Regvart
