Sun Java logo     上一頁      目錄      索引      下一頁     

Sun logo
Sun Java Enterprise System 2005Q4 升級指南 

第 15 章
Communications Express

本章描述如何將 Communications Express 升級到 Java ES 2005Q4 (發行版本 4):Sun Java System Communications Express 6.2 2005Q4。本章提供 Java ES 發行版本 4 支援的不同升級路徑之升級問題和程序的一般簡介。本章涵蓋在 Solaris 和 Linux 作業系統上的升級作業:


Communications Express 升級簡介

本節描述下列會影響 Communications Express 升級至 Java ES 2005Q4 (發行版本 4) 的一般層面:

關於 Java ES 發行版本 4 Communications Express

Java ES 發行版本 4 Communications Express 以修正錯誤為主。相對於發行版本 3,新增了幾個功能:郵件篩選器支援、通訊錄共用及代理認證。

Communications Express 升級資訊指南

表 15-1 顯示支援的 Communications Express 至 Java ES 發行版本 4 的升級路徑。該表適用於 Solaris 和 Linux 作業系統。

表 15-1  至 Java ES 發行版本 4:Sun Java System Communications Express 6.2 2005Q4 的升級路徑 

Java ES 發行版本

Communications Express 版本

一般方法

需要重新配置

發行版本 3

Sun Java System Communications Express 6 2005Q1

直接升級:
藉由套用修補程式並重新配置 Messaging Server 元件來執行。

配置檔案

發行版本 2

Sun Java System Communications Express 6 2004Q2

直接升級:
藉由套用修補程式並重新配置 Messaging Server 元件來執行。

配置檔案

發行版本 1

無升級:

 

Java ES 發行版本之前的發行版本

無升級:

 

Communications Express 資料

下表顯示可能受 Communications Express 軟體升級影響的資料類型。

表 15-2  Communications Express 資料用途

資料類型

位置

用途

配置資料:

本機配置目錄
var/CommsExpress-base/WEB-INF/config/uwcauth.properties
var/
CommsExpress-base/WEB-INF/config/uwcconfig.properties
var/
CommsExpress-base/WEB-INF/config/uwclogging.properties

MessagingServer-base/config/msg.conf
以及其他用於配置 Messaging Server MEM (Web 郵件) 的配置檔案

配置 Communications Express,包括 Messaging Server MEM (Web 郵件)

Web 容器配置

Web Server:
server.policyserver.xml 檔案,位於
WebServer-base/https-hostname/config

Application Server (Java ES 發行版本 3 和 4):
server.policy domain.xml 檔案,位於
AppServer8Config-base/domains/domainName/config

Application Server (Java ES 發行版本 2):
server.policyserver.xml 檔案,位於
AppServer7Config-base/domains/domainName/config

配置 Communications Express Web 容器實例。

目錄模式

Directory Server 使用者/群組目錄

對於支援一般使用者所需的使用者屬性

相容性問題

發行版本 4 Communications Express 未推出任何介面變更,它向下相容較早版本。

Communications Express 相依性

Communications Express 對其他 Java ES 元件的相依性可能會影響升級和重新配置 Communications Express 軟體的程序。例如,Communications Express 介面或功能上的變更可能需要 Communications Express 依賴之元件的升級版本。升級此類元件的需求取決於具體的升級路徑。

Communications Express 對下列 Java ES 元件有相依性:


從 Java ES 發行版本 3 升級 Communications Express

本節包括將 Communications Express 從 Java ES 2005Q1 (發行版本 3) 升級至 Java ES 2005Q4 (發行版本 4) 的相關資訊。本節涵蓋以下主題:

簡介

將 Java ES 發行版本 3 Communications Express 升級到發行版本 4 時,請考慮升級程序的下列層面:

升級發行版本 3 Communications Express

本節描述如何在 Solaris 及 Linux 平台上將 Communications Express 從 Java ES 發行版本 3 升級到 Java ES 發行版本 4。當某個主題依賴平台特定的程序時,該主題將指出其適用的作業系統。本節涵蓋以下主題:

升級前作業

升級 Communications Express 之前,應該執行下述作業。

驗證目前版本資訊

可以藉由存取 Communications Express 登入頁面來驗證 Communications Express 的目前版本,該頁面會顯示目前版本編號。

升級 Communications Express 相依性

一般的建議是將電腦系統 (及運算環境中) 的所有 Java ES 元件都升級到 Java ES 發行版本 4。不過,Communications Express 只對 Messaging Server、Calendar Server 和 Directory Preparation Tool 有硬性升級相依性。因此,升級 Communications Express 依賴的其他 Java ES 發行版本 3 元件是選擇性的。

不過,如果選擇升級所有 Communications Express 相依性,則應在升級 Communications Express 之前,按照以下順序升級所有相依性。可以略過可能已升級過的任何相依性。

  1. 共用元件。  第 2 章「升級 Java ES 共用元件」中提供了將 Java ES 共用元件升級至發行版本 4 的指示。
  2. Directory Server。  第 4 章「Directory Server 和 Administration Server」中提供了將 Directory Server 升級至發行版本 4 的指示。
  3. Web 容器軟體。  第 6 章「Web Server」第 9 章「Application Server」中分別提供了升級 Web Server 和 Application Server 的指示。
  4. Access Manager (Access Manager SDK)。  第 11 章「Access Manager」中提供了將 Access Manager 升級到發行版本 4 的指示。
  5. Directory Preparation Tool。   配置發行版本 4 Communications Express 之前,需已對 Directory Server 執行發行版本 4 Directory Preparation Tool。如果尚未對 Directory Server 執行發行版本 4 Directory Preparation Tool,請將 Directory Preparation Tool 升級到發行版本 4,然後使用它來修改和延伸 Directory Server 的模式 (請參閱第 12 章「Directory Preparation Tool」中的程序)。
  6. Messaging Server。    需要將 Messaging Server 元件升級到發行版本 4,才能支援發行版本 4 Communications Express。第 13 章「Messaging Server」中提供了將 Messaging Server 升級至發行版本 4 的指示。
  7. Calendar Server。    需要將 Calendar Server 元件升級到發行版本 4,才能支援發行版本 4 Communications Express。第 14 章「Calendar Server」中提供了將 Calendar Server 升級至發行版本 4 的指示。
備份 Communications Express 資料

將 Communications Express 從發行版本 3 升級到發行版本 4 需要重新配置 Messaging Server MEM。可以回復本機變更,因此不需要備份任何資料。

取得必要的配置資訊和密碼

需要以超級使用者身份登入,才能執行升級。如果使用 Web Server 作為 Web 容器,則不需要配置資訊。不過,如果使用 Application Server 作為 Web 容器,將需要 Application Server 管理員使用者 ID 和密碼。

升級發行版本 3 Communications Express (Solaris)

本節討論影響 Communications Express 升級程序的注意事項,接著提供對程序本身的說明。

升級注意事項 (Solaris)

將 Communications Express 軟體升級到 Java ES 發行版本 4 時要考慮下列注意事項:

升級程序 (Solaris)

下述程序適用於電腦上要更新的所有 Communications Express 元件。

  1. 根據表 15-4 取得所需的修補程式。
  2. 可從下列位置將修補程式下載到 /tmphttp://sunsolve.sun.com/pub-cgi/show.pl?target=patches/patch-access

  3. 請以超級使用者身份登入或成為超級使用者。
  4. su -

  5. 停止 Communications Express,方法是停止其 Web 容器。
  6. Web Server
    WebServer-base/https-instanceName/stop

    Application Server
    AppServer8-base/bin/asadmin stop-domain domainName

  7. 如果尚未將希望升級的共用元件升級到發行版本 4,請執行此動作。
  8. 請參閱升級 Communications Express 相依性

  9. 套用表 15-4 中相應的 Communications Express 修補程式。
  10. patchadd patch_ID

  11. 確認修補程式升級成功:
  12. showrev -p | grep uwc

    輸出應傳回步驟 5 中套用的修補程式 ID 版本。

  13. 將配置資料從現有配置檔案遷移到發行版本 4 的候選配置檔案。
  14. cd CommsExpress-base/sbin
    ./patch-config
    CommsExpress-base/install/patch/patch_ID

    此指令會提示您輸入目前配置目錄,然後備份現有配置檔案。接著,它會將這些檔案中的配置參數值與發行版本 4 的範本配置檔案合併,以建立新的發行版本 4 候選配置檔案。應按照修補程式 readme 檔案「特殊安裝說明」區段中描述的方式來檢查這些新檔案是否存在可能的衝突。

  15. 安裝發行版本 4 候選配置檔案,使它們成為使用中配置。
  16. ./install-newconfig CommsExpress-base/install/patch/patch_ID

    此指令將新的發行版本 4 配置檔案安裝在其正確的發行版本 4 位置。

  17. 移除 Web 容器維護之 Communications Express 的 JSP 類別快取。
  18. 若要檢視程序,請參閱 Web 容器 (Web Server 或 Application Server) 的文件。

  19. 重新啟動 Communications Express,方法是重新啟動它的 Web 容器。
  20. Web Server
    WebServer-base/https-instanceName/start

    Application Server
    AppServer8-base/bin/asadmin start-domain domainName
         --user
    admin_ID --password password

升級發行版本 3 Communications Express (Linux)

本節討論影響 Communications Express 升級程序的注意事項,接著提供對程序本身的說明。

升級注意事項 (Linux)

除了 Linux 發行版本 4 升級修補程式與 Solaris 修補程式不同以外,其餘在 Linux 平台上將 Communications Express 軟體升級到 Java ES 發行版本 4 所要考慮的注意事項與在 Solaris 平台上升級時要考慮的注意事項相同 (請參閱升級注意事項 (Solaris))。

下表顯示適用於 Linux OS 的發行版本 4 Communications Express 升級修補程式:

表 15-5  用於在 Linux 上升級 Communications Express 的修補程式1 

說明

修補程式 ID 和 RPM 名稱

Communications Express 核心

118542-21

  • sun-uwc-6.1-7.21.i386.rpm

Communications Express 本土化版本

118044-14

  • sun-uwc-l10n-Locale-6.1-11.9.i386.rpm

1修補程式的修訂版號碼是升級到 Java ES 發行版本 4 的最低需求。如果有更新的修訂版可用,請使用更新的修訂版,而不要使用表中的修訂版。

升級程序 (Linux)

下述程序適用於電腦上要更新的所有 Communications Express 元件。


注意

在 Linux 上執行的從 Java ES 發行版本 3 到 Java ES 發行版本 4 的升級無法回復。


  1. 使用表 15-5 中的修補程式號碼和 RPM 名稱取得所需的修補程式。使用此資訊以取得 RPM 的版本號碼。
  2. 可從下列位置將修補程式下載到 /tmphttp://sunsolve.sun.com/pub-cgi/show.pl?target=patches/patch-access

  3. 請以超級使用者身份登入或成為超級使用者。
  4. su -

  5. 停止 Communications Express,方法是停止它的 Web 容器。
  6. Web Server:
    WebServer-base/https-instanceName/stop

    Application Server
    AppServer8-base/bin/asadmin stop-domain domainName

  7. 如果尚未將希望升級的共用元件升級到發行版本 4,請執行此動作。
  8. 請參閱升級 Communications Express 相依性

  9. 套用表 15-5 中 Communications Express 的 RPM。
  10. 例如:

    rpm -Fvh sun-uwc-6.1-7.21.i386.rpm

  11. 確認修補程式升級成功:
  12. rpm -qa | grep uwc

    該輸出應傳回步驟 5 中的 RPM 版本。

  13. 將配置資料從現有配置檔案遷移到發行版本 4 的候選配置檔案。
  14. cd CommsExpress-base/sbin
    ./patch-config
    CommsExpress-base/install/patch/patch_ID

    此指令會提示您輸入目前配置目錄,然後備份現有配置檔案。接著,它會將這些檔案中的配置參數值與發行版本 4 的範本配置檔案合併,以建立新的發行版本 4 候選配置檔案。應按照修補程式 readme 檔案「特殊安裝說明」區段中描述的方式來檢查這些新檔案是否存在可能的衝突。

  15. 安裝發行版本 4 候選配置檔案,使它們成為使用中配置。
  16. ./install-newconfig CommsExpress-base/install/patch/patch_ID

    此指令將新的發行版本 4 配置檔案安裝在其正確的發行版本 4 位置。

  17. 移除 Web 容器維護之 Communications Express 的 JSP 類別快取。
  18. 若要檢視程序,請參閱 Web 容器 (Web Server 或 Application Server) 的文件。

  19. 重新啟動 Communications Express,方法是重新啟動它的 Web 容器。
  20. Web Server:
    WebServer-base/https-instanceName/start

    Application Server:
    AppServer8-base/bin/asadmin start-domain domainName
         --user
    admin_ID --password password

驗證升級

可以藉由存取 Communications Express 登入頁面來驗證 Communications Express 的目前版本,該頁面會顯示目前版本編號。

登入後,請檢查升級後的使用者介面是否有新的郵件標籤、舊的電子郵件以及行事曆事件 (如果正在使用這些通道)。

此外,也可以檢查記錄檔案中是否有升級程序中的各個步驟:

升級後作業

除了在升級程序 (Solaris)升級程序 (Linux) 中所述的步驟之外,沒有升級後的作業。

回復升級 (Solaris)

本節描述影響 Communications Express 升級回復程序的注意事項,接著提供程序本身。

回復注意事項 (Solaris)

發行版本 4 Communications Express 的升級回復程序基本上就是升級到發行版本 4 程序的逆過程。將會回復重新配置並移除修補程式。

回復程序 (Solaris)
  1. 請以超級使用者身份登入或成為超級使用者。
  2. su -

  3. 停止 Communications Express,方法是停止它的 Web 容器。
  4. Web Server:
    WebServer-base/https-instanceName/stop

    Application Server
    AppServer8-base/bin/asadmin stop-domain domainName

  5. 回復對 Communications Express 使用的 Directory Server 配置目錄所做的變更。
  6. 回復在步驟 8 中執行的重新配置。
  7. cd CommsExpress-base/sbin
    ./uninstall-newconfig
    CommsExpress-base/install/patch/patch_ID

  8. 移除表 15-4 中的修補程式。
  9. patchrm patch_ID

  10. 重新啟動 Communications Express,方法是重新啟動它的 Web 容器。
  11. Web Server:
    WebServer-base/https-instanceName/start

    Application Server:
    AppServer8-base/bin/asadmin start-domain domainName
         --user
    admin_ID --password password

多重實例升級

在某些部署架構中,會將 Communications Express 部署在多個電腦系統上,以提供延展性並提高可用性。例如,可以讓 Communications Express 元件在多台電腦上執行,並透過負載平衡器來分散負載。

若 Communications Express 實例已達負載平衡,則可以執行串聯式升級,即依序升級 Communications Express 實例而不中斷服務。升級 Communications Express 的每個實例時其他實例仍可繼續執行。需要按照升級發行版本 3 Communications Express 中所述的方式升級每個實例。


從 Java ES 發行版本 2 升級 Communications Express

除了下面指出的幾個不同之處外,將 Java ES 2004Q2 (發行版本 2) Communications Express 升級到發行版本 4 的程序與將發行版本 3 Communications Express 升級到發行版本 4 的程序均相同。


備註

本節適用於 Communications Express 部署在發行版本 2 Web Server Web 容器中的情況,但不適用於 Communications Express 部署在發行版本 2 Application Server Web 容器中的情況。目前不支援後一種情況。


升級 Communications Express 相依性

將 Java ES 發行版本 2 Communications Express 升級到發行版本 4 的升級前作業與將發行版本 3 Communications Express 升級到發行版本 4 的升級前作業類似,唯一不同之處在於升級 Communications Express 相依性應包括將所有共用元件 (請參閱表 1-6) 和 Communications Express 依賴且位於本機上的所有產品元件都升級到發行版本 4。

升級 Communications Express 相依元件時,應該按照下列順序升級它們,且都須在升級 Communications Express 之前進行。可以略過可能已升級過的任何相依性。

  1. 共用元件。  第 2 章「升級 Java ES 共用元件」中提供了將 Java ES 共用元件升級至發行版本 4 的指示。
  2. Directory Server。  Directory Server 很少與 Communications Express 位於同一電腦上,但從 Java ES 發行版本 2 升級 Directory Server 和 Administration Server 中提供了將 Directory Server 升級到發行版本 4 的指示。
  3. Web 容器軟體。  從 Java ES 發行版本 2 升級 Web Server從 Java ES 發行版本 2 升級 Application Server 中分別提供了升級 Web Server 和 Application Server 的指示。
  4. Access Manager (Access Manager SDK)。  從 Java ES 發行版本 2 升級 Access Manager 中提供了將 Access Manager 升級到發行版本 4 的指示。
  5. Directory Preparation Tool。  Directory Preparation Tool 很少與 Communications Express 位於同一電腦上,但從 Java ES 發行版本 2 升級 Directory Preparation Tool 中提供了升級 Directory Preparation Tool 和對 Directory Server 執行它的指示。
  6. Messaging Server。   需要將 Messaging Server MTA 升級到發行版本 4,才能支援發行版本 4 Communications Express。從 Java ES 發行版本 2 升級 Messaging Server 中提供了將 Messaging Server 升級至發行版本 4 的指示。
  7. Calendar Server。   Calendar Server 很少與 Communications Express 位於同一電腦上,但在從 Java ES 發行版本 2 升級 Calendar Server 中提供了將 Calendar Server 升級到發行版本 4 的指示。

發行版本 2 Communications Express 升級

將 Communications Express 從發行版本 2 升級到發行版本 4 的程序取決於部署 Communications Express 軟體的 Web 容器。

升級發行版本 2 Communications Express:Web Server Web 容器

若要將發行版本 2 Communications Express 升級到發行版本 4,在部署到已升級至發行版本 4 的 Web Server Web 容器中時,除了將參照的所有發行版本 3 取代為發行版本 2 以外,其他請遵循升級發行版本 3 Communications Express (Solaris)升級發行版本 3 Communications Express (Linux) 中的指示。

升級發行版本 2 Communications Express:Application Server Web 容器

目前不支援將發行版本 2 Communications Express 升級到發行版本 4 (在部署到 Application Server Web 容器中時)。



上一頁      目錄      索引      下一頁     


文件號碼:819-3458。  Copyright 2005 Sun Microsystems, Inc. 版權所有。