-
1. Re: Can I stop dynamically one binding depending on property value?
igarashitm Sep 26, 2014 9:12 PM (in response to maciekdeb)You can stop gateway programatically with using JBossEAP management API. This is an example stopping/restarting gateway: https://github.com/jboss-switchyard/release/blob/master/jboss-as7/tests/src/test/java/org/switchyard/test/quickstarts/CamelJMSBindingQuickstartTest.java#L90-L109
-
2. Re: Can I stop dynamically one binding depending on property value?
kcbabo Sep 29, 2014 5:32 PM (in response to igarashitm)1 of 1 people found this helpfulIn addition to Tomo's suggestion, you can do this via JMX. BindingMXBean extends LifecycleMXBean:
-
3. Re: Can I stop dynamically one binding depending on property value?
maciekdeb Oct 1, 2014 6:19 PM (in response to kcbabo)Guys, thanks for reposnses. I've checked and this makes really nice job But do you know is it possible to do such operation via Switchyard only? I think that my word "after app will be deployed" was confusing. It isn't required. What's more I would like to do all the deployment in the one go without using additional steps to clean up after the main deployment. So could we go deeper? Is there any way to prepare such service with bindings, where only few of them (depending on property values) will work and others not? I've tried to connect my promoted service with Camel component and there use the .autoStartup(false) method, but of course it doesn't work.
-
4. Re: Can I stop dynamically one binding depending on property value?
jorgemoralespou_2 Oct 8, 2014 2:40 PM (in response to maciekdeb)1 of 1 people found this helpfulHi Maciej,
Maybe worth the idea presented here: http://unpoucode.blogspot.se/2014/10/service-with-variable-number-of.html