Results 1 to 2 of 2

Thread: enable/disable Spring Integration components

  1. #1

    Default 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. #2
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •