源码:
<inbound>
<jdbc:inbound-endpoint connector-ref="hisjee-connector" queryKey="queryHisZyxxTemp"/>
</inbound>
<inbound>
<!-- <jdbc:inbound-endpoint connector-ref="founder-connector" queryKey="queryFounderZyxx"/> -->
<vm:inbound-endpoint path="hisZyxx"/>
</inbound>
<inbound>
<vm:inbound-endpoint path="hisZyxxTest"/>
</inbound>
日志:
10:07:53,984 INFO [JdbcConnector] Registering listener: queryHisZyxxTempService on endpointUri:jdbc://queryHisZyxxTemp
10:07:54,000 INFO [AbstractLifecycleManager] Initialising: 'null'. Object is: JdbcMessageReceiver
10:07:54,000 INFO [AbstractLifecycleManager] Starting: 'null'. Object is: JdbcMessageReceiver
10:07:54,000 INFO [ServiceLifecycleManager] Starting service: insertFounderZyxxService
10:07:54,000 INFO [ComponentLifecycleManager] Starting component: commponent.31641022
10:07:54,000 INFO [SedaStageLifecycleManager] Starting service: insertFounderZyxxService
10:07:54,015 INFO [VMConnector] Registering listener: insertFounderZyxxService on endpointUri: vm://hisZyxx
10:07:54,015 INFO [AbstractLifecycleManager] Initialising: 'null'. Object is: VMMessageReceiver
10:07:54,015 INFO [AbstractLifecycleManager] Starting: 'null'. Object is: VMMessageReceiver
10:07:54,015 INFO [ServiceLifecycleManager] Starting service: requeryFounderZyxxService
10:07:54,015 INFO [ComponentLifecycleManager] Starting component: commponent.26092663
10:07:54,015 INFO [SedaStageLifecycleManager] Starting service: requeryFounderZyxxService
10:07:54,015 INFO [VMConnector] Registering listener: requeryFounderZyxxService on endpointUri:vm://hisZyxxTest
如上述源码和日志所示,Mule启动时会根据入口启动消息监听服务(红色字体部分),然后将接受到的消息服务发送给组件处理,然后再通过出口路由到指定端点。