Auto discovery of other end points for blueprint.xml in clustered fuse environment

Solution Unverified - Updated -

Issue

  • How to perform location discovery mechanism for Apache Camel endpoints ?
  • There are more than 10 OSGi bundles. These are all CXF endpoint consumers. Some of the bundles call other bundles as part of the Apache camel route blueprint.xml configuration. When all the bundles are deployed on the same fuse esb container on the same local VM, they all work fine. However, when the bundles are deployed in a clustered environment, such that 3 OSGi bundles are deployed on 1 VM, another 3 on other VM and so on...
  • Here, the problem starts in clustered environment. When the bundles are deployed they look for bundles at specific IP address,and if the bundles are not there, they throw deployment errors.
  • Also, the requirement is that bundles do not reference other bundles using fixed IP address, but auto discover the other bundle CXF end points?. Please note that in production, we'll be using fuse fabric.
<cxf:cxfEndpoint id="testId" address="http://IP:8090/port1" serviceClass="ancd" endpointName="Soap12endpoint" wsdlURL="http://IP:8090/port1/?wsdl" serviceName="s:xyz" xmlns:s="http://namespace"
 loggingFeatureEnabled="true">
</cxf:cxfEndpoint>
  • Now, as you can see that in the above configuration there is IP address mentioned. Is there a way that the service is auto discovered and I need not mention the IP address ?

Environment

  • Red Hat JBoss Fuse
    • 6.1.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content