When JMS listerner configured in spring reads JMS from queue/topic it can log the message just by enabling corresponding logger.
For produced (outgoing) messages it works without problem.
For consumed (incoming) messages logging is done by MessagingMessageListenerAdapter in method: onMessage but it is logged after transformation to MessagingMessage which is by default LazyResolutionMessage which means it breaks logging as no payload or headers are logged from this message class.
Is there some easy way to log messages and avoud this lazy message?
John opened SPR-16724 and commented
When JMS listerner configured in spring reads JMS from queue/topic it can log the message just by enabling corresponding logger. For produced (outgoing) messages it works without problem. For consumed (incoming) messages logging is done by MessagingMessageListenerAdapter in method: onMessage but it is logged after transformation to MessagingMessage which is by default LazyResolutionMessage which means it breaks logging as no payload or headers are logged from this message class. Is there some easy way to log messages and avoud this lazy message?
Affects: 4.3.10, 5.0.5