Hey Bret Correct me if I am interpreting you wrong here.

While deploying the service on instance 1 we should see the evidence of
service being registered over the cluster.
hence its endpoint should get published(logged) or we should see any other
evidence over the instance 2 is what you are saying right?

and I do agree and I am not seeing anything similar in my case either.

Initially I thought that my bean is getting defined would be enough as in
below log(bold) :

org.springframework.beans.factory.support.defaultlistablebeanfact...@1dd7880:
defining beans
[cxf,org.apache.cxf.bus.spring.BusApplicationListener,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.endpoint.ServiceContractResolverRegistry,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean#0,org.apache.servicemix.cxf.transport.nmr.NMRTransportFactory,helloWorldImpl,helloWorld,org.apache.servicemix.jbi.cluster.engine.OsgiSimpleClusterRegistration#0,serviceName];

But what you are saying does make sense to me.

Even I am getting log of successful deployment and publishing of my service
when deployed on instance 1:

Log from instance 1:

18:04:38,917 | INFO  | xtenderThread-58 | ReflectionServiceFactoryBean     |
ory.ReflectionServiceFactoryBean  437 | Creating Service
{http://cxf.examples.servicemix.apache.org/}HelloWorldImplService from class
org.apache.servicemix.examples.cxf.HelloWorld
18:04:39,698 | INFO  | xtenderThread-58 | ServerImpl                       |
g.apache.cxf.endpoint.ServerImpl   91 | Setting the server's publish address
to be nmr:HelloWorld
18:04:39,714 | INFO  | xtenderThread-58 | ManagementEndpointRegistry       |
ement.ManagementEndpointRegistry   56 | Registering endpoint:
org.apache.servicemix.nmr.core.internalendpointwrap...@7ed7f0a0 with
properties {NAME=HelloWorld,
INTERFACE_NAME={http://cxf.examples.servicemix.apache.org/}HelloWorld,
service.id=268, objectClass=[Ljava.lang.String;@27e2d8,
SERVICE_NAME={http://cxf.examples.servicemix.apache.org/}HelloWorldImplService}
18:04:39,932 | INFO  | xtenderThread-58 | OsgiBundleXmlApplicationContext  |
ractOsgiBundleApplicationContext  327 | Publishing application context as
OSGi service with properties
{org.springframework.context.service.name=cluster-typo,
Bundle-SymbolicName=cluster-typo, Bundle-Version=4.2.0.fuse-01-00}


And No evidence on Instance 2.


I guess we are missing a step somewhere not able to see where though?

Thanks.
Aditya


allisonsdad wrote:
> 
> 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.-tp28729394p28731546.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to