Hi
On 30/08/12 22:05, Spandit2 wrote:
Hello All ,
I am using CXF DOSGI to implement so REST services and deployed them in
Jboss AS7 . I am wondering how can I provide load balancing and fail over
around these services. I have service registry where all these services are
registered , Have multiple instances of same service running on different
node .
But I am missing how to load balance these services ?
I read some articles talking about implementing proxy service which looks
into service registry and decide which service to invoke . But how does this
proxy service selects which service to invoke . Are there any good examples
of proxy service ?
The documentation is here:
http://cxf.apache.org/docs/jax-rs-failover.html
Actually, this is out of date (to be updated), as the main CXF feature
can now be used (same one as for JAX-WS) after Christian did some
refactoring.
I know of the only example which enables the load balancing at the RS
client side via the Service Locator, it is available in Talend examples:
https://github.com/Talend/tesb-rt-se/tree/master/examples/tesb/locator-rest
Give that example a try - I think you can do something similar to get
the services found from the service registry that you use.
I also think you can get the features injected into DOSGi client proxies
too, as the code checks the properties and features
Let us know how it goes please
Sergey
Any insights would be helpful.
Thanks
Sunil
--
View this message in context:
http://cxf.547215.n5.nabble.com/DOSGI-Service-load-balancing-tp5713383.html
Sent from the cxf-user mailing list archive at Nabble.com.
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/
Blog: http://sberyozkin.blogspot.com