I'm working one mq based application where i need to set JMS_IBM_Format as MQHMDE header, whenever i try to use this header i'm getting ('MQCC_FAILED') reason '2142' ('MQRC_HEADER_ERROR') error. Could you please help me how to place a message when using MQHMDE header, these are the info i'm using while sending
JMSDeliveryMode -> Persistent
JMS_IBM_Format -> MQConstants.MQFMT_MD_EXTENSION
JMS_IBM_Character_Set -> 785
JMS_IBM_Encoding -> 500
CamelJmsDestinationName -> queue:///queueName?targetClient=0 (tried with target as 1 as well)
I'm trying to send the msg through java based apache camel framework and the msg type is in string. Can someone please help me on this issue,
detailed error message below
java.lang.RuntimeException: org.springframework.jms.IllegalStateException: JMSWMQ2007: Failed to send a message to destination 'queueName'.; nested exception is com.ibm.msg.client.jms.DetailedIllegalStateException: JMSWMQ2007: Failed to send a message to destination 'queueName'. JMS attempted to perform an MQPUT or MQPUT1; however IBM MQ reported an error. Use the linked exception to determine the cause of this error.; nested exception is com.ibm.mq.MQException: JMSCMQ0001: IBM MQ call failed with compcode '2' ('MQCC_FAILED') reason '2142' ('MQRC_HEADER_ERROR').
------------------------------
Mallikarjun Kanavalli
------------------------------