目录 上一页 下一页 索引

附录 A

部署配置文件


本附录详细介绍了用于部署 Content Delivery Server 组件的部署配置文件的格式。此文件格式旨在通过 ANT“替换”命令进行操作。有关使用配置文件的信息,请参见第 3.1.3 节“第 3 步:设置基本部署的部署配置文件”

属性按以下方式进行分组:

本附录还包括用于说明设置用法的样例部署配置文件。

A.1 常规属性

下表说明了在使用 WebLogic Server 或 Sun Java System Application Server 时所用配置文件中的常规属性。必须对这些属性进行设置。表 22 中说明了仅由 WebLogic Server 使用的属性。

表 21-常规属性
属性
说明
server.type
指定要部署到的应用程序服务器的类型。对于 WebLogic Server,请使用 weblogic;而对于 Sun Java System Application Server,请使用 sun。例如,server.type=weblogic
 
注意:不要更改此属性的值。
java.mem
为应用程序服务器启动 JVM 时所使用的字符串,它将决定 JVM 的内存设置。例如,java.mem=-ms512m -mx1024m
-XX:MaxPermSize=256m
app.server.domain
应用程序服务器的域名。例如,app.server.domain=cdsdomain
app.server.name
应用程序服务器使用的名称。例如,app.server.name=cdsserver
app.server.portnumber
应用程序服务器将在其上监听 HTTP 请求的端口。例如,app.serverportnumber=80
cs.internal.uri
Content Delivery Server 中使用的 Catalog Manager 的 URI。例如,cs.internal.uri=http://localhost:80/admin/
dp.internal.uri
Content Delivery Server 中使用的 Developer Portal 的 URI。例如,dp.internal.uri=http://localhost:80/developer/
fs.internal.uri
Content Delivery Server 中使用的 Fulfillment Manager 的 URI。例如,fs.internal.uri=http://localhost:80/fs/
vs.internal.uri
Content Delivery Server 中使用的 Vending Manager 的 URI。例如,vs.internal.uri=http://localhost:80/vsadmin/
sp.internal.uri
Content Delivery Server 中使用的 Subscriber Portal 的 URI。例如,sp.internal.uri=http://localhost:80/subscriber/
cs.external.uri
外部实体访问 Catalog Manager 时所使用的 URI。例如,cs.external.uri=http://webhost.domain.com:80/admin/
dp.external.uri
外部实体访问 Developer Portal 时所使用的 URI。例如,dp.external.uri=http://webhost.domain.com:80/developer/
fs.external.uri
外部实体访问 Fulfillment Manager 时所使用的 URI。例如,fs.external.uri=http://webhost.domain.com:80/fs/
vs.external.uri
外部实体访问 Vending Manager 时所使用的 URI。例如,vs.external.uri=http://webhost.domain.com:80/vsadmin/
sp.external.uri
外部实体访问 Subscriber Portal 时所使用的 URI。例如,sp.external.uri=http://webhost.domain.com:80/subscriber/

下表说明了仅在使用 WebLogic Server 时才使用的属性。如果未使用 WebLogic Server,则不需要这些属性。

表 22-与 WebLogic Server 一起使用的常规属性
属性
说明
app.server.threadcount
应用程序服务器处理 HTTP 请求时使用的线程数。例如, app.server.threadcount=10
app.server.ssl.enable
SSL 支持的状态。将此属性设置为 false 可以禁用应用程序服务器的 SSL。例如,app.server.ssl.enabled=false
缺省值为 true
app.server.ssl.port
应用程序服务器将在其上监听 SSL HTTP 请求的端口号。例如,app.server.ssl.port=81
app.server.hostip
在其中部署服务器的主机的主机名或 IP 地址。例如,app.server.hostip=localhost
app.server.admin.port
WebLogic Server 管理控制台的端口号。例如,app.server.admin.port=7800
jndi.host
提供 JNDI 服务的主机的名称。这应是 IP 地址或可解析的 DNS 名称。例如,jndi.host=localhost
jndi.port
JNDI 主机在其上监听 JNDI 请求的端口号。指定为 jndi.host 指定的主机所使用的端口号。例如,jndi.port=80

A.2 管理器属性

三个 Content Delivery Server 管理器组件(Vending Manager、Catalog Manager 和 Fulfillment Manager)都有类似的属性集。特定管理器的属性由属性前缀进行标识。下表说明了这些前缀:

表 23-Content Delivery Server 管理器组件前缀
前缀
说明
vs
Vending Manager
cs
Catalog Manager
fs
Fulfillment Manager

下表介绍了管理器属性。

表 24-管理器属性
属性
说明
prefix.include
此属性用于确定部署的配置中是否包括由 prefix 标识的组件。如果组件不应部署到给定的部署,请在行的前面加上 # 前缀以注释相应的 prefix.include 属性。
vs.account.name
当前部署的 Vending Manager 的名称。例如,suncds.vending.server.1。该名称必须与您为数据库配置文件中的相应 Vending 元素指定的名称特性匹配,而且当您在 Catalog Manager 中创建 Vending Manager 帐户时该名称必须用作帐户 ID。
此属性只适用于 Vending Manager。

A.3 服务属性

除了部署和配置 Vending Manager、Catalog Manager 及 Fulfillment Manager 外,还应部署 Content Delivery Server 服务。与上述的管理器属性一样,每个服务的所有属性都由唯一前缀来标识。下表介绍了当前的服务及其前缀。

表 25-Content Delivery Server 服务前缀
前缀
说明
es
事件服务
ms
消息传送服务
pl
推送监听器服务
ns
通知服务
pp
后付费服务
cl
确认监听器服务
mo
监视服务

下表介绍了服务属性。

表 26-服务属性
属性
说明
prefix.include
对于服务器组件,这些属性确定是否应部署指定的服务。如果不需要部署特定服务,请注释此属性。
prefix.java.mem
启动服务时使用的内存设置。例如,es.java.mem=-ms64m -mx128m
prefix.jmx.port
Java Management Extensions 代理在其上进行监听的端口。例如,es.jmx.port=8082
此属性只适用于事件服务和消息传送服务。
注意:在同一主机上部署的每个服务的端口号必须各不相同。
ms.mail.smtp.host
能够接受未经身份验证的电子邮件的邮件服务器名称。
此属性只适用于消息传送服务。
ms.mail.smtp.sender
电子邮件的回复地址。
此属性只适用于消息传送服务。

A.4 与 BEA WebLogic Server 一起使用的样例部署配置文件

这是显示本附录中所述配置设置的样例配置文件。此文件位于 $CDS_HOME/cfg 目录中,名为 wl_sample.cfg。使用该文件之前,应先编辑属性。很多样例设置对于您的环境都不正确。

注意,Content Delivery Server 将忽略以 # 开始的行。

代码示例 4 与 WebLogic 一起使用的样例部署配置文件
################################################################## 
# 
# Configuration File 
# 
# This Java properties file defines all of the required properties 
# that are used to deploy and configure a server.Your deployment 
# can consist of any combination of the following components: 
# 
# VENDING MANAGER         (vs) 
# CATALOG MANAGER         (cs) 
# FULFILLMENT MANAGER     (fs) 
# EVENT SERVICE           (es) 
# MESSAGING SERVICE       (ms) 
# POSTPAID SERVICE        (pp) 
# NOTIFY SERVICE          (ns) 
# CONFIRMLISTENER SERVICE (cl) 
# PUSHLISTENER SERVICE    (pl) 
# MONITORING SERVICE      (mo) 
# 
# Each of these components has its own properties that are used to 
# configure it. 
# 
# NOTE:Be careful not to leave trailing spaces..... 
# 
################################################################## 
 
#================================================================= 
# General Properties 
#================================================================= 
 
# Specifies your application server to be BEA WebLogic  
# (DO NOT CHANGE) 
server.type=weblogic 
 
# ------------ Java Settings ------------- # 
java.mem=-ms512m -mx1024m -XX:MaxPermSize=256m 
 
# --------- App Server Settings ---------- # 
app.server.domain=cdsdomain 
app.server.name=cdsserver 
app.server.portnumber=80 
        # Number of listening threads 
app.server.threadcount=10 
        # true for SSL support 
app.server.ssl.enabled=true 
        # SSL listen port 
app.server.ssl.port=81 
      # Host Name or IP address of the system where server is 
      # deployed 
      # You should change it if you running multiple IP addresses 
app.server.hostip=localhost 
      # WL administration console port, ONLY IF SSL IS ENABLED 
app.server.admin.port=7800 
 
# --------- JNDI Server Settings --------- # 
jndi.host=jndihost.domain.com 
jndi.port=80 
 
# ------------- URI Settings ------------- # 
cs.internal.uri=http://localhost:80/admin/ 
dp.internal.uri=http://localhost:80/developer/ 
fs.internal.uri=http://localhost:80/fs/ 
vs.internal.uri=http://localhost:80/vsadmin/ 
sp.internal.uri=http://localhost:80/subscriber/ 
cs.external.uri=http://webhost.domain.com:80/admin/ 
dp.external.uri=http://webhost.domain.com:80/developer/ 
fs.external.uri=http://webhost.domain.com:80/fs/ 
vs.external.uri=http://webhost.domain.com:80/vsadmin/ 
sp.external.uri=http://webhost.domain.com:80/subscriber/ 
 
#================================================================= 
# Catalog Manager & Developer Portal 
#================================================================= 
# Make the following line a comment if the catalog manager is not to 
# be deployed and configured 
cs.include 
# Make the following line a comment if the developer portal is not 
# to be deployed and configured 
dp.include 
 
#================================================================= 
# Vending Manager & Subscriber Portal 
#================================================================= 
# Make the following line a comment if the vending manager is not to 
# be deployed and configured 
vs.include 
# Make the following line a comment if the subscriber portal is not 
# to be deployed and configured 
sp.include 
 
#================================================================= 
# Fulfillment Manager 
#================================================================= 
# Make the following line a comment if the fulfillment manager is 
# not to be deployed and configured 
fs.include 
 
#================================================================= 
# Event Service 
#================================================================= 
# Make the following line a comment if the event service is not to 
# be deployed and configured 
es.include 
 
# ------------ Java Settings ------------- # 
es.java.mem=-ms64m -mx128m 
 
# ----------- Service Settings ----------- # 
es.jmx.port=7801 
 
#================================================================= 
# Messaging Service 
#================================================================= 
# Make the following line a comment if the messaging service is not 
# to be deployed and configured 
ms.include 
 
# ------------ Java Settings ------------- # 
ms.java.mem=-ms64m -mx128m 
 
# ----------- Service Settings ----------- # 
ms.jmx.port=7802 
 
# ------------ Mail Settings ------------- # 
ms.mail.smtp.host=mailhost.domain.com 
ms.mail.smtp.sender=info@domain.com 
 
#================================================================= 
# Postpaid Service 
#================================================================= 
# Make the following line a comment if the postpaid service is not 
# to be deployed and configured 
pp.include 
 
# ------------ Java Settings ------------- # 
pp.java.mem=-ms64m -mx128m 
 
#================================================================= 
# Notify Service 
#================================================================= 
# Make the following line a comment if the notify service is not to 
# be deployed and configured 
ns.include 
 
# ------------ Java Settings ------------- # 
ns.java.mem=-ms64m -mx128m 
 
#================================================================= 
# ConfirmListener Service 
#================================================================= 
# Make the following line a comment if the confirmlistener service 
# is not to be deployed and configured 
cl.include 
 
# ------------ Java Settings ------------- # 
cl.java.mem=-ms64m -mx128m 
 
#================================================================= 
# PushListener Service 
#================================================================= 
# Make the following line a comment if the pushlistener service is 
# not to be deployed and configured 
pl.include 
 
# ------------ Java Settings ------------- # 
pl.java.mem=-ms64m -mx128m 
 
#================================================================= 
# Monitoring Service 
#================================================================= 
# Make the following line a comment if the monitoring service is not 
# to be deployed and configured 
mo.include 
 
# ------------ Java Settings ------------- # 
mo.java.mem=-ms64m -mx128m 

A.5 与 Sun Java System Application Server 一起使用的样例部署配置文件

这是显示本附录中所述配置设置的样例部署配置文件。此文件位于 $CDS_HOME/cfg 目录中,名为 sn_sample.cfg。使用该文件之前,必须先编辑属性。很多样例设置对于您的环境都不正确。

注意,Content Delivery Server 将忽略以 # 开始的行。

代码示例 5 与 Sun Java System Application Server 一起使用的样例部署配置文件
################################################################## 
# 
# Configuration File 
# 
# This Java properties file defines all of the required properties 
# that are used to deploy and configure a server.Your deployment 
# can consist of any combination of the following components: 
# 
# VENDING MANAGER         (vs) 
# CATALOG MANAGER         (cs) 
# FULFILLMENT MANAGER     (fs) 
# EVENT SERVICE           (es) 
# MESSAGING SERVICE       (ms) 
# POSTPAID SERVICE        (pp) 
# NOTIFY SERVICE          (ns) 
# CONFIRMLISTENER SERVICE (cl) 
# PUSHLISTENER SERVICE    (pl) 
# MONITORING SERVICE      (mo) 
# 
# Each of these components has its own properties that are used to 
# configure it. 
# 
# NOTE:Be careful not to leave trailing spaces..... 
# 
################################################################## 
 
#================================================================= 
# General Properties 
#================================================================= 
 
# Specifies your application server to be Sun Java System  
# (DO NOT CHANGE) 
server.type=sun 
 
# ------------ Java Settings ------------- # 
java.mem=-ms512m -mx1024m -XX:MaxPermSize=256m 
 
 
# --------- App Server Settings ---------- # 
app.server.domain=cdsdomain 
app.server.name=cdsserver 
app.server.portnumber=80 
 
# ------------- URI Settings ------------- # 
cs.internal.uri=http://localhost:80/admin/ 
dp.internal.uri=http://localhost:80/developer/ 
fs.internal.uri=http://localhost:80/fs/ 
vs.internal.uri=http://localhost:80/vsadmin/ 
sp.internal.uri=http://localhost:80/subscriber/ 
cs.external.uri=http://webhost.domain.com:80/admin/ 
dp.external.uri=http://webhost.domain.com:80/developer/ 
fs.external.uri=http://webhost.domain.com:80/fs/ 
vs.external.uri=http://webhost.domain.com:80/vsadmin/ 
sp.external.uri=http://webhost.domain.com:80/subscriber/ 
 
#================================================================= 
# Catalog Manager & Developer Portal 
#================================================================= 
# Make the following line a comment if the catalog manager is not to 
# be deployed and configured 
cs.include 
# Make the following line a comment if the developer portal is not 
# to be deployed and configured 
dp.include 
 
#================================================================= 
# Vending Manager & Subscriber Portal 
#================================================================= 
# Make the following line a comment if the vending manager is not to 
# be deployed and configured 
vs.include 
# Make the following line a comment if the subscriber portal is not 
# to be deployed and configured 
sp.include 
 
#================================================================= 
# Fulfillment Manager 
#================================================================= 
# Make the following line a comment if the fulfillment manager is 
# not to be deployed and configured 
fs.include 
 
#================================================================= 
# Event Service 
#================================================================= 
# Make the following line a comment if the event service is not to 
# be deployed and configured 
es.include 
 
# ------------ Java Settings ------------- # 
es.java.mem=-ms64m -mx128m 
 
# ----------- Service Settings ----------- # 
es.jmx.port=7801 
 
#================================================================= 
# Messaging Service 
#================================================================= 
# Make the following line a comment if the messaging service is not 
# to be deployed and configured 
ms.include 
 
# ------------ Java Settings ------------- # 
ms.java.mem=-ms64m -mx128m 
 
# ----------- Service Settings ----------- # 
ms.jmx.port=7802 
 
# ------------ Mail Settings ------------- # 
ms.mail.smtp.host=mailhost.domain.com 
ms.mail.smtp.sender=info@domain.com 
 
#================================================================= 
# Postpaid Service 
#================================================================= 
# Make the following line a comment if the postpaid service is not 
# to be deployed and configured 
pp.include 
 
# ------------ Java Settings ------------- # 
pp.java.mem=-ms64m -mx128m 
 
#================================================================= 
# Notify Service 
#================================================================= 
# Make the following line a comment if the notify service is not to 
# be deployed and configured 
ns.include 
 
# ------------ Java Settings ------------- # 
ns.java.mem=-ms64m -mx128m 
 
#================================================================= 
# ConfirmListener Service 
#================================================================= 
# Make the following line a comment if the confirmlistener service 
# is not to be deployed and configured 
cl.include 
 
# ------------ Java Settings ------------- # 
cl.java.mem=-ms64m -mx128m 
 
#================================================================= 
# PushListener Service 
#================================================================= 
# Make the following line a comment if the pushlistener service is 
# not to be deployed and configured 
pl.include 
 
# ------------ Java Settings ------------- # 
pl.java.mem=-ms64m -mx128m 
 
#================================================================= 
# Monitoring Service 
#================================================================= 
# Make the following line a comment if the monitoring service is not 
# to be deployed and configured 
mo.include 
 
# ------------ Java Settings ------------- # 
mo.java.mem=-ms64m -mx128m 


目录 上一页 下一页 索引 安装指南
Sun Java™ System Content Delivery Server,版本 2004Q1