我正在使用Servicemix 4.5.3并且我在实例1上部署了(HTTP BC)消费者端点,并且我在实例2上部署了(HTTP BC)上的提供者端点,两个实例通过代理网络互连。 / p>
当我调用消费者终点时,我得到以下错误:
org.apache.servicemix.nmr.api.ServiceMixException
:无法派遣交换。没有匹配的端点。
这很好,因为我没有为提供者和消费者端点启用群集。
我正在关注此链接以启用端点的群集 http://fusesource.com/docs/esb/4.2/jbi/ESBJBICluster.html
我有两个问题: 1)如果我启用了两个端点的聚类,那么目标端点(即提供者端点)现在可以解决吗?
2)当我尝试在实例1上部署使用者服务单元时,我收到以下错误。我的xbean配置有什么问题吗? 有没有人知道这个错误的原因是什么?
谢谢你, 阿伦
PS: 这是消费者SU里面的我的xbean.xml。
<http:soap-consumer service="tx:httpSoapConsumer"
endpoint="TaxiProviderHttpSoapConsumerEndpoint"
locationURI="http://localhost:8163/httpSoapConsumer/TaxiProviderHttpSoapConsumerEndpoint"
targetService="tx:httpSoapProvider"
targetEndpoint="httpSoapProviderEndpoint" wsdl="classpath:service.wsdl"
useJbiWrapper="false"
/>
<bean class="org.apache.servicemix.jbi.cluster.engine.OsgiSimpleClusterRegistration">
<property name="name" value="c1" />
<property name="serviceName" value="tx:httpSoapConsumer" />
<property name="endpointName" value="TaxiProviderHttpSoapConsumerEndpoint" />
</bean>
</beans>
ERROR:
`<stack-trace><![CDATA[org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.servicemix.jbi.cluster.engine.OsgiSimpleClusterRegistration#0' defined in file [/home/ubuntu/ProductionEnvironment/MultiInstanceESB/Test1/data/jbi/aruntest.http.Consumer.endpoint.sa/sus/aruntest.http.consumer.endpoint/xbean.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException
Caused by: java.lang.NullPointerException
at org.apache.servicemix.jbi.cluster.engine.OsgiSimpleClusterRegistration.afterPropertiesSet(OsgiSimpleClusterRegistration.java:43)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethod
This is the line causing the Exception: (OsgiSimpleClusterRegistration.java:43)
serviceRegistration = bundleContext.registerService(ClusterRegistration.class.getName(), this, new Properties());