WebSphere Enterprise Service Bus for z/OS バージョン 6.2.0 オペレーティング・システム: z/OS


拡張データ・エレメントを持つイベント・グループにイベントが含まれない

拡張データ・エレメント述部を指定するイベント・グループを定義しましたが、このイベント・グループを照会しても、予期するイベントが返されません。

原因

イベント・データが有効な XML であっても、Common Base Event 仕様に準拠していない可能性があります。この場合は、エラー・メッセージが表示されずに、予期しない結果が発生することがあります。

以下の内容のイベントがあるとします。
<?xml version="1.0" encoding="ASCII"?>
<!-- XPath 式 CommonBaseEvent[@globalInstanceId] に一致するイベント -->
<CommonBaseEvent
        xmlns:xsi="http://www.w3.org/TR/xmlschema-1/"
        xmlns:="http://www.ibm.com/AC/commonbaseevent1_0_1"
        version="1.0.1"
        creationTime="2005-10-17T12:00:01Z"
        severity="10"
        priority="60"
    >
    <situation categoryName="RequestSituation">
        <situationType xsi:type="RequestSituation"
            reasoningScope="INTERNAL"
            successDisposition="Suceeded"
            situationQualifier="TEST"
        />
    </situation>
    <sourceComponentId
        component="component"
        subComponent="subcomponent"
        componentIdType="componentIdType"
        location="localhost"
        locationType="Hostname"
        componentType="sourceComponentType"
    />
    <extendedDataElement name="color" type="string">
        <values>red</values>
    </extendedDataElement>
</CommonBaseEvent>
このイベントには、1 つの子エレメントを持つ単一の拡張データ・エレメントが含まれます。
次に、以下の XPath イベント・セレクター・ストリングで構成されたイベント・グループ定義があるとします。
CommonBaseEvent[extendedDataElements[@name='color' and @type='string' 
        and @values='red']]
イベントの XML 定義にミススペルが含まれているために、このイベント・セレクターはイベントに一致しません。イベント・データで、extendedDataElements エレメントが extendedDataElement と ミススペルされています。これは整形式の XML であるため、エラーが発生せずに any エレメントとして扱われます。このエレメントは検索できません。

対応策

送信されるイベントの XML データが Common Base Event 仕様に準拠していることを確認してください。


topic トピック

ご利用条件 | フィードバック


タイムスタンプ・アイコン 最終更新: 2010/07/05


http://publib.boulder.ibm.com/infocenter/dmndhelp/v6r2mx/topic//com.ibm.websphere.wesb620.zseries.doc/doc/tcei_trb_event_group_ede.html
Copyright IBM Corporation 2005, 2010. All Rights Reserved.
このインフォメーション・センターでは Eclipse テクノロジーが採用されています (http://www.eclipse.org)。