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.