Some more queries on this one:

I am getting the same error for Jaxws:endpoint.

But it works for nmr example EchoEndpoint.

But still I wasn't able to talk to endpoint from the client provided in the
example over the network. Keeping the settings as multicast and brokername
as default on all the machines.

Interestingly 

"one field to match on must be set" error is thrown from class
'SimpleClusterRegistration' 

as it is unable to find endpoint filters like or endpointname or servicename
not sure why though.

If we can get a comprehensive example for clustering would be really
helpful.

Thanks,
Aditya


allisonsdad wrote:
> 
> Folks,
> 
> I am trying to implement clustering in SMX 4 and I'm using the
> cxf-camel-nmr example to experiment with. From what I have read this
> example should be a good fit: it involves the nmr, osgi, and a camel route
> which could force the cluster to use another instance of an endpoint. 
> 
> So my issue is how can I implement clustering in the cxf-camel-nmr
> example, or is it NOT possible? 
> 
> After I have setup the etc/activemq.xml for clustering, I tried to
> configure an OsgiSimpleClusterRegistration bean following the sample
> clustering XML:
> 
> <!-- service def -->
> <http:consumer id="myHttpConsumer" service="test:myService"
> endpoint="myEndpoint" />
> <!-- register the service -->
> <bean
> class="org.apache.servicemix.jbi.cluster.engine.OsgiSimpleClusterRegistration">
>       <property name="endpoint" ref="myHttpConsumer" />
> </bean>
> 
> Then, to register the jaxws endpoint (from the example):
> 
> <jaxws:endpoint id="helloWorld"
> implementor="org.apache.servicemix.examples.cxfcamel.HelloWorldImpl"
> address="nmr:HelloWorld"/>
> 
> ... I am simply doing this:
> 
> <bean
> class="org.apache.servicemix.jbi.cluster.engine.OsgiSimpleClusterRegistration">
>       <property name="endpoint" ref="helloWorld" />
> </bean>
> 
> ... which produces the following exception:
> 
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name
> 'org.apache.servicemix.jbi.cluster.engine.OsgiSimpleClusterRegistration
> #0' defined in URL
> bundleentry://279.fwk30844270/META-INF/spring/beans.xml: Invocation of
> init method failed; nested exception is
> java.lang.IllegalArgumentException: one field to match on must be set
> ....
> 
> How exactly do I register HelloWorldImpl ?? 
> 
> Thanks,
> Bret
> 

-- 
View this message in context: 
http://old.nabble.com/SMX4-and-Clustering%3A-How-about-a-good%2C-comprehensive-example--tp28661144p28679318.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to