Java 人生

          java (Java EE)&Linux

          BlogJava 首頁(yè) 新隨筆 聯(lián)系 聚合 管理
            15 Posts :: 2 Stories :: 5 Comments :: 0 Trackbacks

          一.??? servicemix 中實(shí)現(xiàn) JBI 組件調(diào)用 BPEL 的步驟 .

          1.??????? 建立 BPEL 流程, BPEL 是跟 wsdl(web services) 通信的 .

          2.??????? 創(chuàng)建一個(gè) pxe-system.xml 文件,描述怎麼樣綁定 BPEL 流程到實(shí)際的 JBI 組件中。

          <?xml version="1.0" encoding="UTF-8" standalone="yes"?>

          <system-descriptor name="AsyncProcessSU"

          ? 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="uri:/AsyncProcess.wsdl"

          ? xmlns="http://www.fivesight.com/pxe/system-descriptor/"

          ? xmlns:proc="uri:com.bptest.process"

          ? xmlns:resp="uri:com.bptest.responder">

          ? <channels>

          ??? <channel name="inboundChannel" />

          ??? <channel name="callbackChannel" />

          ??? <channel name="outboundChannel" />

          ? </channels>

          ? <services>

          ??? <service name="ProcessSVC" provider="uri:jbi" >

          ????? <properties>

          ??????? <property name="namespace"

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

          ????? </properties>

          ????? <imports>

          ??????? <!-- The following port will be registered as a JBI service endpoint

          ??????? ?????{uri:fivesight.com/examples/AsyncProcessJBI:ProcessSVC, ProcessPORT}

          ????????? -->

          ??????? <port name="ProcessPORT" type="proc:ProcessPT" channel-ref="inboundChannel"/>

          ??????? <!-- The following port will be registered as a JBI service endpoint

          ???? ????????{uri:fivesight.com/examples/AsyncProcessJBI:ProcessSVC, CallbackPORT}

          ????????? -->

          ??????? <port name="CallbackPORT" type="resp:CallbackPT" channel-ref="callbackChannel"/>

          ????? </imports>

          ??? </service>

          ??? <service name="ResponderSVC" provider="uri:jbi" >

          ????? <properties>

          ??????? <property name="namespace"

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

          ????? </properties>

          ????? <exports>

          ??????? <!-- The following port will invoke JBI service endpoint

          ???????????? {uri:fivesight.com/examples/AsyncProcessJBI:ResponderSVC, ResponderPORT}

          ????????? -->

          ??????? <port name="ResponderPORT" type="resp:ResponderPT" channel-ref="outboundChannel"/>

          ????? </exports>

          ??? </service>

          ??? <service name="ProcessSync.BpelService" provider="uri:bpel">

          ????? <properties>

          ??????? <property name="compiledProcess" value="AsyncProcess.cbp"/>

          ????? </properties>

          ????? <imports>

          ??????? <port name="AsyncResponder.Responder" type="resp:ResponderPT" channel-ref="outboundChannel"/>

          ????? </imports>

          ????? <exports>

          ??????? <port name="Client.Process" type="proc:ProcessPT" channel-ref="inboundChannel"/>

          ??????? <port name="AsyncResponder.Caller" type="resp:CallbackPT" channel-ref="callbackChannel"/>

          ????? </exports>

          ??? </service>

          ? </services>

          </system-descriptor>

          ?

          ?

          3.??????? pxe-system.xml BPEL wsdl 文件打包成 pxe.sar 文件 .

          4.??????? JBI 發(fā)佈組件是一個(gè) zip 文件,所以把剛才的 .sar 在打包成 .zip

          5.??????? 創(chuàng)建 jbi.xml 文件 .

          ?

          <?xml version="1.0" encoding="UTF-8" standalone="yes"?>

          <jbi version="1"

          ? xsi:schemaLocation="http://java.sun.com/xml/ns/jbi? ./jbi.xsd"

          ? xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

          ? xmlns="http://java.sun.com/xml/ns/jbi">

          ?

          ? <service-assembly>

          ??? <identification>

          ????? <name>AsyncProcessSA</name>

          ????? <description>Service Assembly containing just the BPEL deployment.</description>

          ??? </identification>

          ??? <service-unit>

          ????? <identification>

          ??????? <name>AsyncProcessSU</name>

          ??????? <description>BPEL Service Unit</description>

          ????? </identification>

          ????? <target>

          ??????? <artifacts-zip>AsyncProcess-su.zip</artifacts-zip>

          ??????? <component-name>PxeBpelEngine</component-name>

          ????? </target>

          ??? </service-unit>

          ? </service-assembly>

          </jbi>

          6. jbi.xml 和第五步得到的 zip 一起打包成一個(gè) service Assembly(SA)
          7.
          在創(chuàng)建一個(gè) servicemix.xml 文件用來(lái)運(yùn)行 JBI container

          posted on 2006-04-18 20:33 jinmy liao 閱讀(969) 評(píng)論(0)  編輯  收藏 所屬分類: SOA

          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 古蔺县| 洛南县| 任丘市| 乐山市| 福贡县| 阳原县| 岳池县| 夏河县| 屏边| 江源县| 上杭县| 湖北省| 巴里| 遂溪县| 满城县| 忻州市| 出国| 武清区| 北碚区| 海阳市| 方正县| 花莲市| 洛扎县| 连云港市| 如东县| 庄浪县| 连平县| 鸡泽县| 安阳市| 八宿县| 罗田县| 阿图什市| 汤阴县| 绵竹市| 呼图壁县| 万荣县| 镇赉县| 葫芦岛市| 苍梧县| 余庆县| 安仁县|