I'm not sure I understand what your statement is saying, but I think that if 
you set the exchange to InOnly when it is received, the ReplyTo will not affect 
it.

-Steve

On 4/16/19, 7:58 AM, "sagheer ahmed" <saghee...@gmail.com> wrote:

    Hi Team,
    
    Just looking for some help with the below issue. Please do the needful.
    
    *Problem statement:*
    Spring boot service with apache camel consumer on IBM MQ. The route
    receives the request, does some processing and sends it to another queue.
    When the client sends a message without *JMSReplyTo* set in the header, the
    message goes to the 'to' endpoint. If it comes with *JMSReplyTo*, I get the
    below error:
    
    *org.springframework.jms.IllegalStateException: JMSWMQ2007: Failed to send
    a message to destination ‘TEST.OWL.REQ.01'.; nested exception is
    com.ibm.msg.client.jms.DetailedIllegalStateException: JMSWMQ2007: Failed to
    send a message to destination 'TEST.OWL.REQ.01'.*
    
    *JMS attempted to perform an MQPUT or MQPUT1; however WebSphere MQ reported
    an error.*
    
    *Use the linked exception to determine the cause of this error.; nested
    exception is com.ibm.mq.MQException: JMSCMQ0001: WebSphere MQ call failed
    with compcode '2' ('MQCC_FAILED') reason '2027'
    ('MQRC_MISSING_REPLY_TO_Q').*
    
    *Versions: *
    Springboot - 1.5.1.RELEASE
    Camel - 2.21.0
    IBM MQ - 9.0.x
    
    *Analysis:*
    When msg comes without *JMSReplyTo* - *JMS_IBM_MsgType=8* & with
    *JMSReplyTo* - *JMS_IBM_MsgType=1. *I understood that the initial value is
    MQMT_DATAGRAM & with replyTo queue it changes to MQMT_REQUEST
    If I change this header value to 1, it behaves as expected. How do I do it
    without touching the headers? I tried disableReplyTo option in 'from' of
    the route but that doesn't help.
    
    
    Regards,
    Sagheer
    

Reply via email to