Announcement Announcement Module
Collapse
No announcement yet.
enable/disable Spring Integration components Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • enable/disable Spring Integration components

    Hi Guys.

    i got lot of help from this forum and again i need one small help.

    In my Spring Integration application i have two inbound adapters, file and jms. depending on the client i need to enable or disable these inbound adapters. at given installation only one type of adapter should be available and all the channels and other components should be same. is there any way of doing this?

    appreciate your help.

    thanks,
    kelumt

  • #2
    Basically you can use the Profile feature that comes with Spring 3.1
    http://blog.springsource.com/2011/02...1-m1-released/
    http://blog.springsource.org/2011/02...ucing-profile/
    In the nutshell what would happen is you'd have two adapters configured under different profiles:
    Code:
    <beans. . . .>
        <beans profile="foo">
            <int-file:inbound-channel-adapter . . ./>
        <beans>
        <beans profile="bar">
            <int-jms:inbound-channel-adapter . . ./>
        <beans>
        . . .
    </beans>
    So as you can see I have two adapters configured under different profiles. However only one adapter will be available depending on which profile is active.

    Comment

    Working...
    X