Re: Failover with Camel CXF

2015-03-02 Thread sayed_india
I tested with failover code .

However notice that only the service defined in  tag i.e
http://localhost:9000/order?wsdl is available .

Please guide me with a simple code fragment referring to my earlier code
snippet shared(route,WSDL).

I am stuck in fail over clustering.

Appreciate your help.

Thanks.

Sayed
 



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


Re: Failover with Camel CXF

2015-02-27 Thread sayed_india
Thanks a lot for the clarification,will check and let you know in case if any
issues.

How ever ,currently I am running the service in IDE, and if kill port 9000 ,
then none of the other service ports are available.

Is this the right way to test the failover?

Thanks
Sayed



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


Re: Failover with Camel CXF

2015-02-26 Thread Willem Jiang
The camel route that you have just redirect the request to 3 different service 
endpoints with a distribution ratio. If you wants the client to access other 
service endpoint if it cannot access the service endpoint, you need to use the 
failover instead of roundRobin.


--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem



On February 26, 2015 at 8:16:59 PM, sayed_india (sayed.abdulis...@gmail.com) 
wrote:
> Hi,
> Thanks for the response.
> I am able to resolve the compilation issue with below code but unable to
> test ,when I kill the process with 9000 expecting that 9001-2 should be up
> and running which is not, please suggest .
>  
>  
>  
>  
>  
>  
> > distributionRatioDelimiter="-" />
>  
>  
>  
>  
>  
>  
> Please let me know how to test ensure that it works.
>  
> Thanks
> Sayed
>  
>  
>  
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Failover-with-Camel-CXF-tp5723454p5763216.html
>   
> Sent from the Camel - Users mailing list archive at Nabble.com.
>  



Re: Failover with Camel CXF

2015-02-26 Thread sayed_india
Hi,
Thanks for the response.
I am able to resolve the compilation issue with below code but unable to
test ,when I kill the process with 9000 expecting that 9001-2 should be up
and running which is not, please suggest .


 


  
 
 

 
 


Please let me know how to test ensure that it works.

Thanks
Sayed



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


Re: Failover with Camel CXF

2015-02-25 Thread Willem Jiang
Hi,

You need to specify the LoadBalanceType such as Failover or roundRobin.
You can find more information here[1]

[1]https://camel.apache.org/load-balancer.html

--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem



On February 25, 2015 at 7:57:00 PM, sayed_india (sayed.abdulis...@gmail.com) 
wrote:
> Hi,
> I followed the instructions provided but unable to implement shows the
> error:
> [LoadBalanceType[ref:null... because of ref or loadBalancer must be
> specified.
>  
> Please find below code snippet and correct me where I go wrong with this.
>  
> WSDL
> --
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
> --
> Endpoint config:
>  
> > serviceClass="camelinaction.order.OrderEndpoint"
> wsdlURL="wsdl/order.wsdl">
>  
> > serviceClass="camelinaction.order.OrderEndpoint"
> wsdlURL="wsdl/order.wsdl">
>  
> > serviceClass="camelinaction.order.OrderEndpoint"
> wsdlURL="wsdl/order.wsdl">
>  
>  
> Camel Route:
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
> OK
>  
>  
>  
> Appreciate a quick response.
>  
> Thanks and Regards,
> Sayed
>  
>  
>  
>  
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Failover-with-Camel-CXF-tp5723454p5763151.html
>   
> Sent from the Camel - Users mailing list archive at Nabble.com.
>  



Re: Failover with Camel CXF

2015-02-25 Thread sayed_india
Hi,
I followed the instructions provided but unable to implement shows the
error:
[LoadBalanceType[ref:null... because of ref or loadBalancer must be
specified.

Please find below code snippet and correct me where I go wrong with this.

WSDL
--
 
  


  http://localhost:9000/order"; />


  http://localhost:9001/order"; />


  http://localhost:9002/order"; />


  
--
Endpoint config:

http://localhost:9000/order/";
serviceClass="camelinaction.order.OrderEndpoint"
wsdlURL="wsdl/order.wsdl">

http://localhost:9001/order/";
serviceClass="camelinaction.order.OrderEndpoint"
wsdlURL="wsdl/order.wsdl">

http://localhost:9002/order/";
serviceClass="camelinaction.order.OrderEndpoint"
wsdlURL="wsdl/order.wsdl">


Camel Route:




  
 

 



OK



Appreciate a quick response.

Thanks and Regards,
Sayed




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


Failover with Camel CXF

2012-11-30 Thread mabahma
Hello,

I have many routes with many components like Activemq and CXF.

I'm using the failover protocol to loadbalance Activemq brokers and CXF
webServices. 

*The sysntax : failover:(tcp://server1:61616,tcp://server2:61616)*  is
working and messages 

routed to one broker when the other is down.

 but the one with CXF is not working
*
failover:(cxf:bean:service1,cxf:bean:service2)* gives the exception 

service1 on service2 are 2 CXF endpoint beans defined in Camel context:

*http://localhost:8080/sw/service1"/>*

*Failed to resolve endpoint:
failover://(cxf:bean:service1,cxf:bean:service2) due to: No component found
with scheme: failover*

Have you any idea ?

Many thanks



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