コンポーネントに対するイベント順序付けの宣言

イベント順序付けを使用する必要があるコンポーネントのメソッドを 判別したら、WebSphere Integration Developer を使用して コンポーネント定義を更新し、それらの各メソッドに対してイベント順序付け修飾子を 組み込みます。

イベント順序付け修飾子は Service Component Definition Language (SCDL) で定義されているタイプを拡張し、Service Component Architecture (SCA) コンポーネントに対する サービス品質を向上させます。イベント順序付け修飾子には keySpecification エレメントが含まれ、 このエレメントで順序付けするイベントを識別します。 イベント順序付けを使用するメソッドごとに 1 つの keySpecification エレメントが 必要です。各 keySpecification では parameter エレメントを 使用します。このエレメントは、イベント順序付けキーの値を提供する ビジネス・オブジェクト属性 (複数可) を示します。

さらに、イベント順序付け修飾子は sequencingGroup 属性を使用して 一緒に順序付ける必要があるメソッドをグループ化します。同じグループのメソッドによって 生成されるイベントは、すべて順次処理されます。

下記のコンポーネント定義の例では、create メソッドおよび update メソッドで イベント順序付けを定義しています。両者の keySpecification エレメントは、 パラメーターを newOrder ビジネス・オブジェクトの ID 属性として 定義します。
<interfaces>
   <interface xsi:type="wsdl:WSDLPortType" portType="ns1:ProcessOrder">
      <method name="create">
         <scdl:interfaceQualifier xsi:type="es.EventSequencingQualifier">
         <es:eventSequencing sequencingGroup="default" conintueOnError="true">
            <keySpecification>
               <parameter name="newOrder">
                  <xpath>ID</xpath>
               </parameter>
            </keySpecification>
         </es:eventSequencing>
         </scdl:interfaceQualifier>
      </method>
      <method name="update"/>
         <scdl:interfaceQualifier xsi:type="es:EventSequencingQualifier">
         <es.eventSequencing sequencingGroup="default' continueOnError="true">
            <keySpecification>
               <parameter name="newOrder">
                  <xpath>ID</xpath>
               </parameter>
            </keySpecification>
         </es:eventSequencing>
         </scdl:interfaceQualifier>
   </interface>
</interfaces>    

(c) Copyright IBM Corporation 2005, 2006. All rights reserved.
(c) Copyright IBM Japan 2006
このインフォメーション・センターでは、Eclipse テクノロジー (http://www.eclipse.org) が採用されています。