Re: Camel - Hystrix

2016-11-07 Thread r_karthik1
Thanks...Sure will try it out.



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-Hystrix-tp5789751p5789848.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Camel - Hystrix

2016-11-05 Thread r_karthik1
Thanks for your quickresponse.

>From where I can get 2.18.1 source code to build? its already there in
Github?



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-Hystrix-tp5789751p5789785.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Camel - Hystrix

2016-11-04 Thread r_karthik1
I am new to Camel and Hystrix, I am trying to imple hystrix in my project.
Before making sure I can move with hystrix for circuit break scenarios. I
tried the following with give hystrix eample.

When I enable the circuitBreakerForceOpen, its not even entering into the
Bean that I defined. myunderstanding with circuitBreakerForceOpen is enabled
with irrespective of error scenario it has to enter into short circuit path
(i.e. into testBean) but its not. Do I am missing any configuration or I mis
understood the property. Any help would be appericiated

 @Override
public void configure() {
// you can configure the route rule with Java DSL here
from("timer:trigger?period=1s").streamCaching()
.bean("counterBean")
.log(" Client request: ${body}")
.hystrix()
.hystrixConfiguration().
circuitBreakerForceOpen(true).end()
.to("http://localhost:9090/service1;)
  //  .onFallback()
// we use a fallback without network that provides a repsonse
message immediately
//.transform().simple("Fallback ${body}")
   //.transform()//simple("${bean:testBean?method=testCall}")
.onFallbackViaNetwork()
// we use fallback via network where we call a 2nd service*/
.to("http://localhost:7070/service2;)
.end()
.log("Client response: ${body}");
}




--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-Hystrix-tp5789751.html
Sent from the Camel - Users mailing list archive at Nabble.com.