在沒有 Enterprise Console 伺服器的情況下測試事件來源

最後,測試「Enterprise Console Web 服務配接器」的事件來源需要 Enterprise Console 安裝, 以及與到達「Enterprise Console Web 服務配接器」的事件相符的事件類別定義。

然而,遵循下列步驟,可以在未安裝 Enterprise Console 的情況下驗證連通性及訊息格式:

  1. 安裝「Enterprise Console Web 服務配接器」
  2. <adapter_install_dir>/conf/logging.properties 檔案取代為 <adapter_install_dir>/conf/logging.dev.properties 檔案, 以修改記載設定。此配置檔會強制將配接器訊息顯示在啟動配接器的主控台上。
  3. 啟動「Enterprise Console Web 服務配接器」

    請確定您是使用批次檔來啟動配接器, 而不是將它當成 Windows 服務來啟動,否則,您將不會有主控台可以看到這些訊息。

  4. 傳送部份事件。如需正確的埠定義及位址,請參閱「Web 服務」介面定義一節。

如果是在「Enterprise Console Web 服務配接器」中正確處理的每個事件, 則會看到與這裡所顯示之畫面輸出類似的內容:

Oct 19, 2005 10:12:59 AM com.ibm.wtci.cbetec.CbeToTec
convertCbeArrayToTecEventString(cbeEvents) FINER: ENTRY
[org.eclipse.hyades.logging.events.cbe.impl.CommonBaseEventImpl@48ded83
(creationTime: 2005-10-19T14:12:54.191Z, globalInstanceId: null,
elapsedTime: <unset>, extensionName: Tutorial_Event_Type,
localInstanceId: null, msg: Common Event Infrastructure Tutorial,
priority: <unset>, repeatCount: <unset>, sequenceNumber:
<unset>, severity: 10, version: 1.0.1, any: null, situation:
org.eclipse.hyades.logging.events.cbe.impl.SituationImpl@2069ad83
(categoryName: ReportSituation, situationType:
org.eclipse.hyades.logging.events.cbe.impl.ReportSituationImpl@3799ad83
(reasoningScope: INTERNAL) (reportCategory: Succeeded)),
associatedEvents: null, contextDataElements: null, extendedDataElements:
null, msgDataElement: null, reporterComponentId: null,
sourceComponentId:
org.eclipse.hyades.logging.events.cbe.impl.ComponentIdentificationImpl@17b8ad83
(application: Event Source, component: source.EventSource,
componentType: http://www.ibm.com/namespaces/autonomic/Tivoli/Samples,
componentIdType: Sample, executionEnvironment: null, instanceId: null,
location: unknown, locationType: hostname, processId: null,
subComponent: createEvent(), threadId: null))]


相關主題
配接器安裝概觀
啟動配接器
Enterprise Console 事件類別定義
「Web 服務」介面定義
事件來源範例


母主題
應用程式開發