Announcement Announcement Module
Collapse
No announcement yet.
Exception Logging on JMS inbound channel adapter Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Exception Logging on JMS inbound channel adapter

    I'm having an inbound channel adapter that reads messages from a JMS queue (transactional). The incoming messages are passed to another channel for routing and transformation before they're given to my JPA service that stores them in a DB.

    Although its all working fine, I wondered how to log exceptions in case something goes wrong in the chain. Despite the transactional rollback I'd really like to log the fact that there was an exception. Do I have to connect an error channel to a logger? Do I need to declare an interceptor that catches, logs and re-throws the exception?

    Any suggestion, hint or sample reference, is welcome.

    Thanks,

    Vincent
Working...
X