Announcement Announcement Module
No announcement yet.
JMSTemplate is corrupting my message Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • JMSTemplate is corrupting my message

    Hi all,

    I am using Spring JMS template to send messages to IBM WebSphere MQ for the past year. It is working perfectly fine. Recently I came across a strange case. For a specific message of size 31.3 KB the JMS is throwing an exception as below. However, if I add more into the message or if I eliminate part of the message, the exception is not thrown. Moreover, if I replace the JMS Template send call by IBM API the message is sent successfully. The impact of the JMS template exception is that the message gets corrupted. Anybody has any idea or any suggest that I can try?

    The Exception
    ------------------------------------------------------------------------ - Could not close JMS MessageProducer
    javax.jms.JMSException: MQJMS2000: failed to close MQ queue
    at tion(
    at ava:132)
    at ageProducer(
    at org.springframework.jms.core.JmsTemplate.doSend(Jm
    at org.springframework.jms.core.JmsTemplate$2.doInJms (
    at org.springframework.jms.core.JmsTemplate.execute(J
    at org.springframework.jms.core.JmsTemplate.send(JmsT
    at com.datel.common.jms.JMSSender.sendMesage(JMSSende

    Last edited by Keith Donald; Aug 8th, 2008, 09:18 AM.

  • #2
    Any Luck with issue?

    Hi, I have run into the same problem of srping corrupting my message. I see two messages being delivered. If I edit the payload the message processes fine. But the failed message always fails, even after restarts. It crashes the QM with two junk messages. I am on Spring 1.2.8. Please let me know if you happen to rememebr how u solved this one.