Announcement Announcement Module
Collapse
No announcement yet.
how to handle exception in spring integration Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • how to handle exception in spring integration

    Hi,
    I am using spring integration component like aggregator,splitter ,enricher, sftp adapter etc.
    These components configured in my spring context xm below.
    ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("/spring-context.xml");

    Once above context loads, all component start processing. But I want to handle exception if any error happens in one of above components.
    I can add try/catch arround applicationContext but since components runs in separate thread I am not able to handle exception.
    Please help me how to handle exception.

  • #2
    Hi!

    For a start take a look here: http://static.springsource.org/sprin...e-errorhandler
    and here: https://github.com/SpringSource/spri.../errorhandling

    HTH,
    Artem

    Comment

    Working...
    X