Hi Aditya,
Aditya Laddha wrote:
>
>
> I get an error here as :
>
> org.apache.servicemix.nmr.api.ServiceMixException: Could not dispatch
> exchange. No matching endpoints.
> at
> org.apache.servicemix.nmr.core.FlowRegistryImpl.dispatch(FlowRegistryImpl.java:110)
> at
> org.apache.servicemix.nmr.core.ChannelImpl.dispatch(ChannelImpl.java:286)
> at
> org.apache.servicemix.nmr.core.ChannelImpl.sendSync(ChannelImpl.java:141)
> at
> org.apache.servicemix.nmr.core.ChannelImpl.sendSync(ChannelImpl.java:127)
> at
> org.apache.servicemix.nmr.examples.nmr.client.Client.run(Client.java:82)
> at java.lang.Thread.run(Thread.java:619)
>
>
I've set up (2) servicemix instances also (except that they're using
multicast with named brokers), and I am getting the same exception when
running a simple camel route (on instance#1) to send an exchange to the
remote service (installed on instance#2). I'm experimenting using the
cxf-camel-nmr example. I'm expecting the NMR on instance#1 to see the remote
service on instance#2. I am also exporting the endpoint in the beans.xml
with <bean class="org.apache.servicemix.common.osgi.EndpointExporter" />.
Are you observing that you're remote service is ever being registered and
published?
In my case I am not seeing evidence in the log of my remote service being
registered after I deploy the bundle on instance#2. When the service is
successfully deployed on instance#1, I see the following in the log:
07:34:00,970 | INFO | xtenderThread-60 | ReflectionServiceFactoryBean |
ory.ReflectionServiceFactoryBean 437 | Creating Service
{http://cxfcamel.examples.servicemix.apache.org/}HelloWorldImplService from
class org.apache.servicemix.examples.cxfcamel.HelloWorld
07:34:01,157 | INFO | xtenderThread-60 | ServerImpl |
org.apache.cxf.endpoint.ServerImpl 91 | Setting the server's publish
address to be nmr:HelloWorld
07:34:01,157 | INFO | xtenderThread-60 | ManagementEndpointRegistry | ...
ment.ManagementEndpointRegistry 56 | Registering endpoint:
org.apache.servicemix.nmr.core.internalendpointwrap...@edafdcaf with
properties {NAME=HelloWorld,
INTERFACE_NAME={http://cxfcamel.examples.servicemix.apache.org/}HelloWorld,
service.id=268, objectClass=[Ljava.lang.String;@109c17,
SERVICE_NAME={http://cxfcamel.examples.servicemix.apache.org/}HelloWorldImplService}
- Bret
--
View this message in context:
http://old.nabble.com/Servicemix-4.2-clustering-issues.-tp28729394p28730244.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.