IBM Enterprise Records, 版本 5.1.+              

编辑 WebSphere Application Server 上的 CRConfig.xml 文件

修改 CRConfig.xml 文件,从而当 Content EngineWebSphere® Application Server 上运行时创建与 Crystal Reports 的 Content Engine JDBC 连接。

要在 Content EngineWebSphere Application Server 上运行时创建与 Crystal Reports 服务器的 Content Engine JDBC 连接,您必须修改现有 CRConfig.xml 文件。

更新下表中显示的 XML 元素内容:
表 1. Content EngineWebSphere 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

Classpath

将以下 JAR 文件添加至 classpath:

  • Jace.jar
  • log4j.jar
  • log4j-1.2.13.jar(在 WebSphere 6.x 或早期版本上)

将带有完整路径的以下 Crystal Reports JAR 文件添加至 classpath:

  • 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# 对。可在 ier_install_path/RecordsManager/WEB-INF/WcmApiConfig.properties 文件的 RemoteServerURL 参数中找到这些 node:port# 对。当指定该参数值时,请除去 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# 是在 RemoteServerURL 参数中使用的端口号,该参数可在 ier_install_path/RecordsManager/WEB-INF/WcmApiConfig.properties 文件中找到。FPOS 是您的归档计划对象库的名称。
要点:Content Engine 集群内容中,JDBCURL 标记的值可以包含多个 node:port# 对。可在 ier_install_path/RecordsManager/WEB-INF/WcmApiConfig.properties 文件的 RemoteServerURL 参数中找到这些 node:port# 对。将 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 Corporation 2011.
本信息中心基于 Eclipse 技术。(http://www.eclipse.org)