Sun Java System Application Server 9.1 快速入門指南

Procedure驗證 HTTP 階段作業容錯移轉

  1. 若要顯示 clusterjsp 應用程式的第一個頁面,請在瀏覽器中鍵入以下 URL:

    http://localhost :web_server_port /clusterjsp

    localhost 變數替代成執行 Web 伺服器的系統名稱。

    web_server_port 變數替代成 web_server_install_dir /https-hostname /config/server.xmlLS 元素的連接埠屬性值。在此範例中,使用連接埠 38000。

    將顯示您在驗證應用程式的部署中所看到的類似頁面。

  2. 查看顯示的階段作業和主機資訊。例如︰

    • Executed From Server: localhost

    • Server Port Number: 38000

    • Executed Server IP Address: 192.18.145.133

    • Session ID: 41880f618e4593e14fb5d0ac434b1

    • Session Created: Wed Feb 23 15:23:18 PST 2005

  3. 檢視伺服器存取記錄檔,以判斷哪個 Application Server 實例提供此應用程式。記錄檔的位置如下:

    • Solaris Java Enterprise System 安裝:

      /var/opt/SUNWappserver/nodeagents/nodeagent_name /i1/logs/access/server_access_log

      /var/opt/SUNWappserver/nodeagents/nodeagent_name /i2/logs/access/server_access_log

    • Linux Java Enterprise System 安裝:

      /var/opt/sun/appserver/nodeagents/ nodeagent_name/i1/logs/access/server_access_log

      /var/opt/sun/appserver/nodeagents/ nodeagent_name/i2/logs/access/server_access_log

    • Windows Java Enterprise System 安裝:

      install-dir \nodeagents\nodeagent_name\i1\logs\access\server_access_log

      install-dir\nodeagents\nodeagent_name \i2\logs\access/server_access_log

    • 獨立 Application Server 安裝:

      install-dir /nodeagents/nodeagent_name/i1/logs/access/server_access_log

      install-dir/nodeagents/nodeagent_name /i2/logs/access/server_access_log

  4. 停止提供此頁面的 Application Server 實例。

    1. 在管理主控台的左窗格中,展開 [叢集]。

    2. 按一下 [FirstCluster]。

    3. 在右窗格中,按一下 [實例] 標籤。

    4. 按一下處理此請求的伺服器實例旁的核取方塊,再按一下 [停止] 按鈕。

  5. 重新載入 clusterjsp 應用程式範例頁面。

    將保留階段作業 ID 和階段作業屬性資料。

  6. 查看其他 Application Server 實例的存取記錄,即可注意到目前已經處理此請求。

    狀態容錯移轉功能可正常運作,因為 HTTP 階段作業可永久儲存於 HADB 中。除了 HTTP 階段作業狀態以外,Application Server 也可以將 EJB 狀態儲存在 HADB 中。

接下來的步驟

恭喜!您現在已完成 Application Server 的快速入門了。

在本節中,您已安裝、配置和啟動 HADB,也已經將叢集和應用程式配置為使用高可用性功能。如需有關 Application Server 的其他資訊,請參閱其他可用資源