應用程式描述子範例

您可以檢視範例應用程式描述子的應用程式資訊。

下表說明範例應用程式的詳細資料:

表 1. 應用程式說明
  詳細資料
Application Order Management
實例 暫置
伺服器
  • 三個 Apache 伺服器
  • 兩個 WebLogic 伺服器(在一個網域中接受管理)
  • 一個自訂伺服器(訂單履行閘道)
  • 一個自訂 Java™ 程序 (自動郵寄程式)
  • 一個 Oracle 實例
模組
  • 靜態內容
  • WAR 檔
  • EAR 檔
  • RAR 檔(與閘道模組通訊)
  • 虛擬閘道模組
  • 自動郵寄程式 jar
  • DB 綱目
主機
  • 三個 Web 伺服器系統
  • 兩個應用程式伺服器系統
  • 一個訂單履行閘道伺服器系統
  • 一個 Oracle 資料庫伺服器系統

範例應用程式的基本應用程式描述子儲存在 oms_coll_desc.xml 檔中,放置於任何應用程式元件的應用程式描述子目錄中:

<base-app-descriptor>
    <app-instance
        name="Order Management-Staging"
        description="Order Entry application- staging"
        url="http://orderentry.stage.lab.com"
        contact="John Public" />
</base-app-descriptor>

管理 Apache 伺服器之電腦系統的元件應用程式描述子儲存在 apache_host_coll_desc.xml 檔中,該檔案位於 collation.properties 配置檔中 com.collation.platform.os.hostappdescriptorfiles.dir 參數指定的位置。 其他主機應用程式描述子呈現在商業應用程式中包含的每個電腦系統上:

<component-app-descriptor
        grouping-pattern="Order Management-Staging"
        app-instance-name="Order Management-Staging-Web Tier" >
    <component-descriptor
        type="host"
        name="staging.example.com"
        marker-module="true" />
</component-app-descriptor>

WebLogic 元件應用程式描述子儲存在 WebLogic_home_dir/appdescriptors 目錄中的 wls_coll_desc.xml 檔案中:

<component-app-descriptor
        grouping-pattern="Order Management-Staging"
        app-instance-name="Order Management-Staging-Order Processing Server" >
    <!-- order.war -->
    <component-descriptor
        type="module"
        name="WebLogicWebModule:order"
        marker-module="false" />
    
    <!-- orderejb.ear -->
    <component-descriptor
        type="module"
        name="WebLogicWebModule:orderejb"
        marker-module="false" />
    
    <!-- ofg.rar -->
    <component-descriptor
        type="module"
        name="WebLogicWebModule:ofg"
        marker-module="false" />
</component-app-descriptor>

「訂單履行閘道」元件應用程式描述子儲存在自訂伺服器範本指示的目錄之 ofg_coll_desc.xml 檔:

<component-app-descriptor
        grouping-pattern="Order Management-Staging"
        app-instance-name="Order Management-Staging-Order Fulfillment Gateway" >
    <component-descriptor
        type="server"
        name="n/a"
        marker-module="false" />
</component-app-descriptor>

自動郵寄程式 Java 處理程序的元件應用程式描述子儲存在自訂伺服器範本中所指定目錄的 am_coll_desc.xml 檔中:

<component-app-descriptor
        grouping-pattern="Order Management-Staging"
        app-instance-name="Order Management-Staging-Order Processing Automailer">
    <component-descriptor
        type="module"
        name="automailer.jar"
        marker-module="false" />
    <component-descriptor
        type="module"
        name="login.jar"
        marker-module="false" />
</component-app-descriptor>

Oracle 資料庫綱目的元件應用程式描述子儲存在 $ORACLE_HOME/appdescriptors 目錄的 ora_coll_desc.xml 檔中:

<component-app-descriptor
        grouping-pattern="Order Management-Staging"
        app-instance-name="Order Management-Staging-Order Processing DB">
    <component-descriptor
        type="module"
        name="ORDER"
        marker-module="false" />
    
    <component-descriptor
        type="module"
        name="OFG"
        marker-module="false" />
        
    <component-descriptor
        type="module"
        name="ADMIN"
        marker-module="false" />
</component-app-descriptor>

Apache 伺服器的元件應用程式描述子儲存在 Apache 伺服器上 Apache_server_home_dir/appdescriptors 目錄中的 apache_coll_desc.xml 檔案中。 其他應用程式描述子呈現在屬於「訂單管理」應用程式的各個 Apache 伺服器上:

<component-app-descriptor
        grouping-pattern="Order Management-Staging"
        app-instance-name="Order Management-Staging-Web Tier">
    <component-descriptor
        type="module"
        name="/opt/apache13/htdocs/ordermgt/"
        marker-module="false" />
</component-app-descriptor>