2014-09-11 72 views
2

我有一個打包成JAR的Mule項目,它有一個VM端點,我們可以在這個Mule適配器中調用流。Mule Project作爲其他Mule項目的依賴項

我想調用這個虛擬機端點從另一個應用程序,這又是一個騾應用程序,但我得到的異常。

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項目中調用VM端點流。

下面是我遵循的步驟,

以下是我已經試過的步驟,我想我失去了一些東西,但沒能找到,

1)建設項目的罐子我想要調用它的虛擬機端點。

2)做了一個新的示例項目,它只是一個http入站端點。 3)在樣例工程中包含我想測試的項目的jar文件到classpath中。 4)調用HTTP端點通http和然後設置一個Bean其中接收機VM端點需要,然後嘗試通過使用

<vm:outbound-endpoint path="toABCPath" doc:name="VM" exchange-pattern="request-response"/> 

5調用VM端點)當我運行它作爲一個騾應用,它的工作原理罰款直到它找到上面的第4步,它給了我上面的錯誤。

任何人都可以建議我失蹤的地方?

回答

0

沒有包含依賴項目的mule配置,我的不好。

它包含如下,

<spring:beans> 
    <spring:import resource="classpath:mule-config.xml" /> 
</spring:beans> 

現在它工作正常。謝謝。

相關問題