How to implement load balancing with CXF Fabric

Posted on

I'm trying to perform balance fuse jboss using fabric cxf, I'm doing it on Ubuntu 12.04, and I intend to use at least two virtual machines which have installed linux mint, what happens is that I find the documentation necessary to perform this test .

I read that you can configure the FabricPath of the FabricLoadBalancerFeature for the CXF server and CXF client use.

xmlns:cxfcore="http://cxf.apache.org/core"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd">






I have read is that I need to perform a configuration





which will have the role of consumer.

The role of load balancing requires Maven artifact fabric: fabric-cxf.

For that reason the following dependency added:


org.fusesource.fabric
fabric-cxf
6.0.0.redhat-024

Package to import org.fusenesource.fabric.cxf comma separated in the Import-Package list item is added.


...
org.fusesource.fabric.cxf,
*

In the console running Jboss Fuse where we introduce the following statement to add the feature fabric-cxf

JBossFuse:karaf@root> profile-edit -f fabric-cxf cxf-lb-server

Attachments

Responses