BPEL4WS如何无缝的集成到ESB中

BPEL4WS和ESB不仅不是相互竞争的,反而是互补的。BPEL定义业务流程,而ESB提供BPEL执行过程中所有需要的服务。下面看一个PXE的BPEL过程无缝迁入到ServiceMix里面的例子

这是在PXE中独立执行时候的配置,我们看到ProcessSVC的Provider里面使用了Protocoladapter.soap这个协议提供。其实bpel更不需要关注提供协议的类型,这些服务全部交给ESB做就行了



  xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation=" http://www.fivesight.com/pxe/system-descriptor/ http://www.fivesight.com/pxe/system-descriptor/"
  wsdlUri="file:main.wsdl"
  xmlns=" http://www.fivesight.com/pxe/system-descriptor/"
  xmlns:proc="uri:com.bptest.process"
  xmlns:resp="uri:com.bptest.responder">
 
   
   
   
 
 
   
     
       
       
     
   
   
     
       
     
   
   
     
       
     
     
       
       
     
   
 

下面是ServiceMix中的配置。很明显,刚才的provider里面换成了uri:jbi。通过pxe的JBI兼容组件,当业务流程中调用这些组件的时候,自动通过ESB来调用这些服务。



  xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation=" http://www.fivesight.com/pxe/system-descriptor/ http://www.fivesight.com/pxe/system-descriptor/"
  wsdlUri="file:./AsyncProcess.wsdl"
  xmlns=" http://www.fivesight.com/pxe/system-descriptor/"
  xmlns:proc="uri:com.bptest.process"
  xmlns:resp="uri:com.bptest.responder">
 
   
   
   
 
 


   
     
       
         value="uri:fivesight.com/examples/AsyncProcessJBI" />
     
     
       
       

       
       
     
   

   
     
       
         value="uri:fivesight.com/examples/AsyncProcessJBI" />
     
     
       
       
     
   

   
     
       
     
     
       
     
     
       
       
     
   
 



Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=485805


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值