I am trying to read an message from IBM message queue using JmsTemplate and displaying the same on console, but when it gets printed I observed the JMS header is also getting attached with my message as follows:
JMSMessage class: jms_text
JMSType: null
JMSDeliveryMode: 1
JMSExpiration: 0
JMSPriority: 0
JMSMessageID: ID:414d51204d515453414d49313120202056d9be132543786e
JMSTimestamp: 1462271773270
JMSCorrelationID: null
JMSDestination: null
JMSReplyTo: null
JMSRedelivered: false
event_log_id event_id event_name event_time insertion_time event_args src_mac src_name src_util_id s ...
Can someone please help me with the code how to remove this header, I am using Spring Batch in Java and I need to pass the message received from MQ to processor without header.