Thank you Zoran...

This is only the sample code which tries to publish message to IBM MQ and
sets the header. Actual application has much more in it.

As per IBM specification, we need to do following but I am not sure how to
set MQMD properties in Camel.

// Enable MQMD write
  dest.setBooleanProperty(WMQConstants.WMQ_MQMD_WRITE_ENABLED, true);
  
  // Optionally, set a message context if applicable for this MD field
  dest.setIntProperty(WMQConstants.WMQ_MQMD_MESSAGE_CONTEXT, 
    WMQConstants.WMQ_MDCTX_SET_IDENTITY_CONTEXT);

  // On the message, set property to provide custom appIdentityData
  jmsMessage.setStringProperty("JMS_IBM_MQMD_ApplIdentityData", 
    "MyApplIdentityData");




--
View this message in context: 
http://camel.465427.n5.nabble.com/Unable-to-set-JMS-IBM-MQMD-ApplIdentityData-using-camel-tp5793781p5793783.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to