Announcement Announcement Module
Collapse
No announcement yet.
Load several integration contexts as child contexts? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Load several integration contexts as child contexts?

    In Spring Batch you have the AutomaticJobRegistrar with which you can define one job per xml file and not worry about bean id conflicts etc.

    But how to achieve this with Spring Integration?

    I define one integration "task" per xml file, and load them under spring batch admin via the beans namespace <import/> tag and wildcards, but this loads them in the same context and i have trouble coming up with descriptive bean names after a while :P

    /META-INF/spring/batch/override/bootstrap/integration-loader.xml:
    Code:
    <import resource="classpath*:/META-INF/integrations/*.xml"/>
    edit: and this is with spring integration 1.0.3 (shipped with spring batch admin)
    Last edited by deebo; Jun 14th, 2010, 07:32 AM.
Working...
X