`
snowfox2008
  • 浏览: 124669 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

mule中协议服务的查找

阅读更多
在mule中提供了tcp、vm、http、soap、jms、udp、file等多种协议,那么这些协议在运行期是怎样查找的呢? 这是由MuleClient在中调用send()方法发送一个事件时,由MuleEndPoint的父类ImmutableMuleEndpoint调用自身的 createEndpointFromUri(UMOEndpointURI uri, String type)方法来创建一个UMOEndpoint,在上面的方法中又调用了ConnectorFactory的createEndpoint(uri, type)方法,最后通过ConnectorFactory自身的getServiceDescriptor(String protocol, Properties overrides)方法,从mule.jar中,读取META-INF\services\org\mule\providers目录下的各种协议的配置文件,然后根据传入的参数protocol,取得当前protocol的配置属性,从而创建各种connector、dispatcher.factory、rece…………
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics