>The problem is that proxy-bean does not "see" consumer-bean on the other smx >instance: the context.getEndpointsForService(QName) method returns an empty >array. >I also tried: >- context.getEndpoint(QName, String) and context.getEndpoints(QName) methods >=> no endpoint/s found >- a Destination object annotated with @ExchangeTarget => no injection occurs >Notice that all works if consumer-bean is on the same smx instance as proxy- >bean.
I tried channel.createExchangeFactoryForService(QName) which solved the problem. It seems that servicemix endpoint discovery feature (see context.getEndpoints() and similar methods in the previous post) is not capable of discovering remote endpoints. Is it correct? Since servicemix succeed in delivering exchanges to remote endpoints, I think it must be somewhat aware of existing remote endpoints! Is there other specific configuration that allows endpoint discovery in the clustered scenario? Thanks in advance JJ -- View this message in context: http://servicemix.396122.n5.nabble.com/Clustering-a-POJO-with-ServiceMix-4-tp3290530p3296257.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
