基于WebSphere与CICS的营业测试环境搭建操作指导书17

#cicscli –S=YY01

#cicscli –S=CX01

#cicscli –S=ZW01

9    发布CICS应用程序

9.1    发布单个应用程序

将服务端程序复制到/tbcs/bin目录。

以”查询用户信息”的应用程序get_userclass为例:

#cicsadd -c pd -r YY01 -B GETUSERC RSLKey=public PathName = “/tbcs/bin/get_userclass” Resident = no

9.2    批量发布应用程序

将所有应用程序发布语句写到脚本pub.sh中,然后运行#sh pub.sh即可批量发布。

10    装载营业共享内存

(1)将oracle用户的.profile文件复制到/home/shmprm目录,因为装载营业共享内存时需要连接数据库:

#su – shmprm

#cp /oracle/.profile .

另外将共享内存相关的文件复制到/home/shmprm目录。

(2)切换到用户shmprm创建文件ArrayLockName文件:

#>/tmp/ArrayLockName

(3)装载内存前停止Region:

#cstopregions.sh

脚本文件类容:

#!/bin/ksh

for REGION in `lssrc -a|grep “cics\.”|grep -v “inoperative”|awk {‘print substr($1,6)’}` ; do

cicscp -v stop region $REGION -f

done

(4)切换到用户shmprm装载营业共享内存:

#/home/shmprm/loadshm.sh

这是唯一需要使用shmprm用户运行程序的地方。

脚本文件内容:

[shmprm@ibmoss61] /home/shmprm> more loadshm.sh

export ORACLE_SID=sdboss

shmparam LoadParam tbcs/tbcs@boss 10.71.139.62 nosecuritylogin

文件中的ORACLE_SID等信息需要配置。

(5)查看内存中的统计信息:

# shmparam PrintArrInfo

11    发布营业前台Web应用

11.1    应用程序文件准备

创建/washome /BS目录,将前台Web应用相关文件复制到此目录:

boss.war、redeploy.jac1、wsadmin.sh

第一次发布应用程序在管理控制台中进行。

以后只需运行#wsadmin.sh –f redeploy.jacl即可更新Web应用。

脚本文件内容详见附件。

11.2    启动服务器

依次启动管理控制台、节点、集群、Web服务器:

#cd /washome/WebSphere/AppServer/profiles/Dmgr01/bin

#./startManager.sh

#cd /washome/WebSphere/AppServer/profiles/Server01/bin

#./startNode.sh

使用浏览器登录管理控制台http://10.71.139.61:9060/ibm/console/,启动集群cluster1、Web服务器webserver1。

11.3    发布应用程序

在”应用程序”菜单中单击”安装新的应用程序”,选择”远程文件系统”,单击”浏览…”,单击节点”ibmoss61Node01″,选择文件”/washome/BS/boss.war”,输入上下文根”/boss”,单击”下一步”,默认”不覆盖现有绑定”,单击”下一步”,提示”应用程序安全警告”,不必例会,单击”继续”,显示4个步骤:

步骤1:选择安装选项。修改应用程序名为”boss”,单击”下一步”。

步骤2:将模块映射到服务器。选中”BOSS WEB Application”,单击”下一步”。

步骤3:映射Web模块的虚拟主机。选中”BOSS WEB Application”,单击”下一步”。

步骤4:总结。单击”完成”,提示”正在安装…”。

最后提示”应用程序 boss 安装成功。要启动应用程序,请先把更改保存到主配置。”单击”保存到主配置”,提示总计更改的文档数为23:

已更改的项

状态

cells / ibmoss61Cell01 / nodes / ibmoss61Node01 / serverindex.xml

Updated  

cells / ibmoss61Cell01 / applications / boss.ear / boss.ear  

Added  

cells / ibmoss61Cell01 / applications / boss.ear / deltas / boss.ear / delta-1160803743357

Added  

cells / ibmoss61Cell01 / applications / boss.ear / deployments / boss / boss.war / WEB-INF / struts-nested.tld

Added  

cells / ibmoss61Cell01 / applications / boss.ear / deployments / boss / boss.war / WEB-INF / struts-html.tld

Added  

cells / ibmoss61Cell01 / applications / boss.ear / deployments / boss / META-INF / was.webmodule

Added  

cells / ibmoss61Cell01 / applications / boss.ear / deployments / boss / META-INF / ibm-application-bnd.xmi  

Added

cells / ibmoss61Cell01 / applications / boss.ear / deployments / boss / META-INF / was.policy

Added  

cells / ibmoss61Cell01 / applications / boss.ear / deployments / boss / boss.war / WEB-INF / Nocache.tld  

Added  

cells / ibmoss61Cell01 / applications / boss.ear / deployments / boss / boss.war / WEB-INF / struts-logic.tld

Added  

cells / ibmoss61Cell01 / applications / boss.ear / deployments / boss / boss.war / WEB-INF / struts-config.xml

Added  

cells / ibmoss61Cell01 / applications / boss.ear / deployments / boss / boss.war / WEB-INF / struts-tiles.tld

Added  

cells / ibmoss61Cell01 / applications / boss.ear / deployments / boss / boss.war / WEB-INF / boss-html.tld

Added  

cells / ibmoss61Cell01 / applications / boss.ear / deployments / boss / META-INF / MANIFEST.MF

Added  

cells / ibmoss61Cell01 / applications / boss.ear / deployments / boss / boss.war / META-INF / MANIFEST.MF

Added  

cells / ibmoss61Cell01 / applications / boss.ear / deployments / boss / META-INF / application.xml  

Added  

cells / ibmoss61Cell01 / applications / boss.ear / deployments / boss / boss.war / WEB-INF / weblogic.xml

Added  

cells / ibmoss61Cell01 / applications / boss.ear / deployments / boss / boss.war / WEB-INF / boss-tree.tld  

Added  

cells / ibmoss61Cell01 / applications / boss.ear / deployments / boss / boss.war / WEB-INF / struts-template.tld

Added  

cells / ibmoss61Cell01 / applications / boss.ear / deployments / boss / boss.war / WEB-INF / ibm-web-bnd.xmi

Added  

cells / ibmoss61Cell01 / applications / boss.ear / deployments / boss / boss.war / WEB-INF / web.xml

Added  

cells / ibmoss61Cell01 / applications / boss.ear / deployments / boss / boss.war / WEB-INF / struts-bean.tld

Added  

cells / ibmoss61Cell01 / applications / boss.ear / deployments / boss / deployment.xml

Added  

单击”保存”,提示”正在同步的节点的当前状态”:

ADMS0200I: The configuration synchronization started for cell.
ADMS0202I: Automatic synchronization mode is disabled for node: ibmoss61Node01.
ADMS0201I: The configuration synchronization started for node: ibmoss61Node01.
ADMS0205I: The configuration synchronization completed successfully for node: ibmoss61Node01.
ADMS0203I: The automatic synchronization mode is enabled for node: ibmoss61Node01.
ADMS0208I: The configuration synchronization complete for cell.

单击”确定”,完成应用程序发布。

11.4    配置应用服务器

单击”应用程序 > 企业应用程序 > boss”,选中”启用类重新装入”,默认重新装入时间间隔为3秒。单击”应用”,提示”已更改了您的本地配置。单击保存应用对主配置的更改。”单击”保存”,提示总计更改的文档数为1:

已更改的项

状态

cells / ibmoss61Cell01 / applications / boss.ear / deployments / boss / deployment.xml  

Updated  

单击”保存”,提示”正在同步的节点的当前状态”:

ADMS0200I: The configuration synchronization started for cell.
ADMS0202I: Automatic synchronization mode is disabled for node: ibmoss61Node01.
ADMS0201I: The configuration synchronization started for node: ibmoss61Node01.
ADMS0205I: The configuration synchronization completed successfully for node: ibmoss61Node01.
ADMS0203I: The automatic synchronization mode is enabled for node: ibmoss61Node01.
ADMS0208I: The configuration synchronization complete for cell.

单击”确定”完成配置。

11.5    配置JDBC

(1)拷贝3个文件ojdbc14.jar、ctgclient.jar、ctgserver.jar至目录/washome/WebSphere/AppServer/lib

(2)修改文件resources.xml,在”resources.j2c:J2CResourceAdapter”段增加如下内容:

<factories xmi:type=”resources.jdbc:CMPConnectorFactory” xmi:id=”CMPConnectorFactory_1122293654393″ name=”reportPool1_CF” authMechanismPreference=”BASIC_PASSWORD” authDataAlias=”ibmoss61CellManager01/report” connectionDefinition=”ConnectionDefinition_1054132487569″ cmpDatasource=”DataSource_1122293654428″>

<propertySet xmi:id=”J2EEResourcePropertySet_1122293654428″/>

<mapping xmi:id=”MappingModule_1122293654428″ mappingConfigAlias=”DefaultPrincipalMapping” authDataAlias=”ibmoss61CellManager01/report”/>

</factories>

<factories xmi:type=”resources.jdbc:CMPConnectorFactory” xmi:id=”CMPConnectorFactory_1122540034008″ name=”reportPool2_CF” authMechanismPreference=”BASIC_PASSWORD” authDataAlias=”ibmoss61CellManager01/report” connectionDefinition=”ConnectionDefinition_1054132487569″ cmpDatasource=”DataSource_1122540034009″>

<propertySet xmi:id=”J2EEResourcePropertySet_1122540034009″/>

<mapping xmi:id=”MappingModule_1122540034009″ mappingConfigAlias=”DefaultPrincipalMapping” authDataAlias=”ibmoss61CellManager01/report”/>

</factories>

<factories xmi:type=”resources.jdbc:CMPConnectorFactory” xmi:id=”CMPConnectorFactory_1122540099284″ name=”tbcsPool1_CF” authMechanismPreference=”BASIC_PASSWORD” authDataAlias=”ibmoss61CellManager01/tbcs” connectionDefinition=”ConnectionDefinition_1054132487569″ cmpDatasource=”DataSource_1122540099284″>

<propertySet xmi:id=”J2EEResourcePropertySet_1122540099284″/>

<mapping xmi:id=”MappingModule_1122540099284″ mappingConfigAlias=”DefaultPrincipalMapping” authDataAlias=”ibmoss61CellManager01/tbcs”/>

</factories>

<factories xmi:type=”resources.jdbc:CMPConnectorFactory” xmi:id=”CMPConnectorFactory_1122540118999″ name=”tbcsPool2_CF” authMechanismPreference=”BASIC_PASSWORD” authDataAlias=”ibmoss61CellManager01/tbcs” connectionDefinition=”ConnectionDefinition_1054132487569″ cmpDatasource=”DataSource_1122540118999″>

<propertySet xmi:id=”J2EEResourcePropertySet_1122540118999″/>

<mapping xmi:id=”MappingModule_1122540118999″ mappingConfigAlias=”DefaultPrincipalMapping” authDataAlias=”ibmoss61CellManager01/tbcs”/>

</factories>

<factories xmi:type=”resources.jdbc:CMPConnectorFactory” xmi:id=”CMPConnectorFactory_1122540136518″ name=”tbcsPool3_CF” authMechanismPreference=”BASIC_PASSWORD” authDataAlias=”ibmoss61CellManager01/tbcs” connectionDefinition=”ConnectionDefinition_1054132487569″ cmpDatasource=”DataSource_1122540136518″>

<propertySet xmi:id=”J2EEResourcePropertySet_1122540136518″/>

<mapping xmi:id=”MappingModule_1122540136518″ mappingConfigAlias=”DefaultPrincipalMapping” authDataAlias=”ibmoss61CellManager01/tbcs”/>

</factories>

<factories xmi:type=”resources.jdbc:CMPConnectorFactory” xmi:id=”CMPConnectorFactory_1122540154858″ name=”tbcsPool4_CF” authMechanismPreference=”BASIC_PASSWORD” authDataAlias=”ibmoss61CellManager01/tbcs” connectionDefinition=”ConnectionDefinition_1054132487569″ cmpDatasource=”DataSource_1122540154858″>

<propertySet xmi:id=”J2EEResourcePropertySet_1122540154858″/>

<mapping xmi:id=”MappingModule_1122540154858″ mappingConfigAlias=”DefaultPrincipalMapping” authDataAlias=”ibmoss61CellManager01/tbcs”/>

</factories>

<factories xmi:type=”resources.jdbc:CMPConnectorFactory” xmi:id=”CMPConnectorFactory_1122540217480″ name=”acctPool1_CF” authMechanismPreference=”BASIC_PASSWORD” authDataAlias=”ibmoss61CellManager01/account” connectionDefinition=”ConnectionDefinition_1054132487569″ cmpDatasource=”DataSource_1122540217480″>

<propertySet xmi:id=”J2EEResourcePropertySet_1122540217480″/>

<mapping xmi:id=”MappingModule_1122540217480″ mappingConfigAlias=”DefaultPrincipalMapping” authDataAlias=”ibmoss61CellManager01/account”/>

</factories>

<factories xmi:type=”resources.jdbc:CMPConnectorFactory” xmi:id=”CMPConnectorFactory_1122540235983″ name=”acctPool2_CF” authMechanismPreference=”BASIC_PASSWORD” authDataAlias=”ibmoss61CellManager01/account” connectionDefinition=”ConnectionDefinition_1054132487569″ cmpDatasource=”DataSource_1122540235983″>

<propertySet xmi:id=”J2EEResourcePropertySet_1122540235983″/>

<mapping xmi:id=”MappingModule_1122540235983″ mappingConfigAlias=”DefaultPrincipalMapping” authDataAlias=”ibmoss61CellManager01/account”/>

</factories>

<factories xmi:type=”resources.jdbc:CMPConnectorFactory” xmi:id=”CMPConnectorFactory_1122540260579″ name=”acctPool3_CF” authMechanismPreference=”BASIC_PASSWORD” authDataAlias=”ibmoss61CellManager01/account” connectionDefinition=”ConnectionDefinition_1054132487569″ cmpDatasource=”DataSource_1122540260580″>

<propertySet xmi:id=”J2EEResourcePropertySet_1122540260580″/>

<mapping xmi:id=”MappingModule_1122540260580″ mappingConfigAlias=”DefaultPrincipalMapping” authDataAlias=”ibmoss61CellManager01/account”/>

</factories>

<factories xmi:type=”resources.jdbc:CMPConnectorFactory” xmi:id=”CMPConnectorFactory_1122540282219″ name=”acctPool4_CF” authMechanismPreference=”BASIC_PASSWORD” authDataAlias=”ibmoss61CellManager01/account” connectionDefinition=”ConnectionDefinition_1054132487569″ cmpDatasource=”DataSource_1122540282219″>

<propertySet xmi:id=”J2EEResourcePropertySet_1122540282219″/>

<mapping xmi:id=”MappingModule_1122540282219″ mappingConfigAlias=”DefaultPrincipalMapping” authDataAlias=”ibmoss61CellManager01/account”/>

</factories>

以下文章点击率最高

Loading…


发表评论

邮箱地址不会被公开。 必填项已用*标注