Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-16724

Incoming JMS not logged correctly by MessagingMessageListenerAdapter

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.3.10, 5.0.5
    • Fix Version/s: Waiting for Triage
    • Component/s: JMS
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      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?

        Attachments

          Activity

            People

            • Assignee:
              juergen.hoeller Juergen Hoeller
              Reporter:
              john.dorien John
              Last updater:
              Spring Issuemaster
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Days since last comment:
                1 year, 1 week, 4 days ago