我有一个打包为JAR的Mule项目,它有一个VM端点,我们可以在此Mule Adapter中调用流。
我想从另一个也是Mule应用程序的应用程序调用此VM端点,但是我遇到了异常。
Message : There is no receiver registered on connector "connector.VM.mule.default" for endpointUri vm://toABCPath
Code : MULE_ERROR-0
Exception stack is:
1. There is no receiver registered on connector "connector.VM.mule.default" for endpointUri vm://toABCPath(org.mule.api.transport.NoReceiverForEndpointExceptionorg.mule.transport.vm.VMMessageDispatcher)
简而言之,我无法在从属的Mule Project中调用VM端点流。
以下是我遵循的步骤,
以下是我尝试的步骤,我认为我遗漏了一些内容但无法找出答案,
1)为我要调用其vm端点的项目构建一个jar。
2)制作了一个新的示例项目,该项目只有一个http入站端点。3)在样本项目中的类路径中包含我要测试的项目的jar文件。4)通过http调用http端点,然后设置接收方VM端点所需的Bean,然后尝试通过使用调用vm端点
<vm:outbound-endpoint path="toABCPath" doc:name="VM" exchange-pattern="request-response"/>
5)当我将其作为Mule应用程序运行时,它可以正常工作,直到找到上面的步骤4为止,它给了我以上错误。
谁能建议我想念的地方?
不包括依赖项目的m子配置,我不好。
包括以下内容
<spring:beans>
<spring:import resource="classpath:mule-config.xml" />
</spring:beans>
现在它工作正常。谢谢。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句