IBM Enterprise Records, 版本 5.1.+              

WebSphere Application Server 上編輯 CRConfig.xml

修改 CRConfig.xml 檔,以便在 WebSphere® Application Server 上執行 Content Engine 時,建立與 Crystal Reports 的 Content Engine JDBC 連線。

如果在 WebSphere Application Server 上執行 Content Engine 時,要建立與 Crystal Reports 伺服器的 Content Engine JDBC 連線,您必須修改現有的 CRConfig.xml 檔。

更新下表所顯示的 XML 元素內容:
表 1. Content Engine 執行於 WebSphere Application Server 時的 XML 元素
XML 元素 設定為...
JavaDir

設定為 WebSphere Application ServerWebSphere Application Server Client JDK 的安裝路徑。例如:

WebSphere Application Server C:\ProgramFiles\IBM\WebSphere\AppServer\java\bin

Application Client for WebSphere Application ServerC:\ProgramFiles\IBM\WebSphere\AppClient\java\bin

類別路徑

將下列 JAR 檔新增至類別路徑:

  • Jace.jar
  • log4j.jar
  • WebSphere 6.x 或更舊版本上的 log4j-1.2.13.jar

新增下列 Crystal Reports JAR 檔及完整路徑到類別路徑中:

  • cecore.jar
  • celib.jar
  • ebus405.jar
  • corbaidl.jar
  • freessl201.jar
  • asn1.jar
  • certj.jar
  • jsafe.jar
  • sslj.jar

這些 JAR 檔通常位於:C:\Program Files\Business Objects\common\4.0\java\libC:\Program Files\Business Objects\Common\4.0\java\lib\external

JVMMaxHeap WebSphere Application Server 設定正確的 JVMMaxHeap 值。
  • 這個字串中的數值必須設定為高於 JVMMinHeap 元素的值。
  • 您必須在 JVMMaxHeap 元素內一以程式碼行鍵入 Java 內容。 這個範例中所顯示的換行是基於可讀性而納入。

對 JNDI 設定 Java 內容,如下列範例所示:

Crystal Reports 和 Content Engine 並置
設定 Java 內容(針對所有 WebSphere Application Server 版本):
<JVMMaxHeap>512000001
-Djava.ext.dirs="C:\Program
Files\IBM\WebSphere\AppServer\java\jre\lib\ext;
C:\Program Files\IBM\WebSphere\AppServer\lib;
C:\Program Files\IBM\WebSphere\AppServer\plugins"
-Djava.naming.factory.initial=
com.ibm.websphere.naming.WsnInitialContextFactory
-Djava.naming.provider.url=iiop://CE_server:port#
-Dcom.ibm.CORBA.loginSource=none
-Dcom.ibm.CORBA.ConfigURL="file:C:\Program
Files\IBM\WebSphere\AppServer\
profiles\default\properties\sas.client.props"</JVMMaxHeap>
Crystal Reports 和 Content Engine 是在不同的伺服器上
對 JNDI 設定 Java 內容,使路徑指向 WebSphere Application Server Client 6.1.x 或 7.0.x 資料夾:
<JVMMaxHeap>512000001
-Djava.ext.dirs="C:\Program
Files\IBM\WebSphere\AppClient\java\jre\lib\ext;
C:\Program Files\IBM\WebSphere\AppClient\lib;
C:\Program Files\IBM\WebSphere\AppClient\plugins"
-Djava.naming.factory.initial=
com.ibm.websphere.naming.WsnInitialContextFactory
-Djava.naming.provider.url=iiop://CE_server:port#
-Dcom.ibm.CORBA.loginSource=none
-Dcom.ibm.CORBA.ConfigURL=
"file:C:\Program Files\IBM\WebSphere\
AppClient\properties\sas.client.props"</JVMMaxHeap>
提示: WebSphere Application Server Client 必須安裝在 Crystal Report 伺服器上。
提示: CE_server:port # 通常是在 ier_install_path/RecordsManager/WEB-INF/WcmApiConfig.properties 檔中的 RemoteServerURL 參數所指定的埠。
重要: 在叢集的 Content Engine 環境中,Djava.naming.provider.url 參數的值可能包含數個 node:port# 配對。 這些 node:port# 配對可以在 ier_install_path/RecordsManager/WEB-INF/WcmApiConfig.properties 檔的 RemoteServerURL 參數中找到。 指定參數值時,請移除 cemp: 字首和尾端 /cell/clusters/CECluster/FileNet/Engine。 例如:
RemoteServerUrl = cemp:corbaloc::server_node1:port#,:server_node2:port#/cell/
clusters/CECluster/FileNet/Engine

下列的 Djava.naming.provider.url 參數:

-Djava.naming.provider.url=corbaloc::server_node1:port#,: server_node2:port#
JVMMinHeap

將此值設定為:512000000

JDBCURL
以下列格式輸入用來連接到 WebSphere Application Server 上的 Content Engine 的 JDBC URL:
jdbc:filenetp8:iiop://CE_server:port#/
FileNet/Engine?objectstores=FPOS
其中 CE_serverContent Engine 伺服器的名稱,port# 是在 ier_install_path/RecordsManager/WEB-INF/WcmApiConfig.properties 檔中找到的 RemoteServerURL 參數所使用的埠號。 FPOS 是檔案計劃物件儲存庫的名稱。
重要: 在叢集的 Content Engine 環境中,JDBCURL 標籤的值可能包含數個 node:port# 配對。 這些 node:port# 配對可在 ier_install_path/RecordsManager/WEB-INF/WcmApiConfig.properties 檔的 RemoteServerURL 參數中找到。 指定標籤值時,請將 cemp: 字首取代為 jdbc:filenetp8,並將 ?objectstores-FPOS 新增至結尾。 例如:
RemoteServerUrl = cemp:corbaloc::server_node1:port#,:server_node2:port#/cell/
clusters/CECluster/FileNet/Engine

下列的 JDBCURL 標籤:

<JDBCURL>jdbc:filenetp8:corbaloc::server_node1:port#,: server_node2:port#/cell/
clusters/CECluster/FileNet/Engine?objectstores=FPOS</JDBCURL>
JDBCClassName

將此值設定為:com.filenet.api.jdbc.Driver

JDBCUserName 將此值設定為具有「GCD 管理者」角色的使用者名稱。
DatabaseStructure

將此值設定為:tables



意見

前次更新: 2011 年 8 月


© Copyright IBM Corp. 2011.
此資訊中心採用 Eclipse 技術。(http://www.eclipse.org)