- 浏览: 147662 次
- 性别:
- 来自: 云南
文章分类
最新评论
-
string2020:
我在安装的时候,一直提示:请输入标记为 Websphere A ...
Window下WebSphere Application Server 7的安装 -
yzqnow1234:
我升级的时候。报 Could not retrieve sy ...
Window下WebSphere Application Server 7的安装 -
jerome_wang:
jiehe ant
WAS 集群自动部署 -
小五儿:
您好!
我正在学习如何实现was集群自动部署,很多东西都 ...
WAS 集群自动部署 -
小五儿:
您好!
WAS 集群自动部署
<project name="wasant" basedir="." default="wsInstallApp">
<property name="was.root" value="G:/Program Files/IBM/WebSphere/AppServer" />
<property name="wsanttasks.jar" value="${was.root}/plugins/com.ibm.ws.runtime.jar"/>
<property name="app.name" value="jreport"/>
<property name="ear.file" value="D:/cheping/jreport.war"/>
<property name="cluster" value="cluster"/>
<property name="context.root" value="/jreport"/>
<!--Login information-->
<property name="username" value="admin"/>
<property name="password" value="admin"/>
<property name="host" value="192.168.128.166"/>
<property name="port" value="8879"/>
<property name="conntype" value="SOAP"/>
<!-- wsadmin command defined
<property name="startApp.Test166"
value="$AdminControl invoke [$AdminControl queryNames type=ApplicationManager,process=Test166,*] startApplication ${app.name}"/>
<property name="startApp.wangcheping"
value="$AdminControl invoke [$AdminControl queryNames type=ApplicationManager,process=wangcheping,*] startApplication ${app.name}"/>
<property name="stopApp.Test166"
value="$AdminControl invoke [$AdminControl queryNames type=ApplicationManager,process=Test166,*] stopApplication ${app.name}"/>
<property name="stopApp.wangcheping"
value="$AdminControl invoke [$AdminControl queryNames type=ApplicationManager,process=wangcheping,*] stopApplication ${app.name}"/>
-->
<!-- task list
<taskdef name="wsStartServer" classname="com.ibm.websphere.ant.tasks.StartServer" classpath="${wsanttasks.jar}" />
<taskdef name="wsStopServer" classname="com.ibm.websphere.ant.tasks.StopServer" classpath="${wsanttasks.jar}" />
<taskdef name="wsInstallApp" classname="com.ibm.websphere.ant.tasks.InstallApplication" classpath="${wsanttasks.jar}" />
<taskdef name="wsUpdateApp" classname="com.ibm.websphere.ant.tasks.UpdateApplication" classpath="${wsanttasks.jar}" />
<taskdef name="wsUninstallApp" classname="com.ibm.websphere.ant.tasks.UninstallApplication" classpath="${wsanttasks.jar}" />
<taskdef name="wsStartApp" classname="com.ibm.websphere.ant.tasks.StartApplication" classpath="${wsanttasks.jar}" />
<taskdef name="wsStopApp" classname="com.ibm.websphere.ant.tasks.StopApplication" classpath="${wsanttasks.jar}" />
<taskdef name="wsListApps" classname="com.ibm.websphere.ant.tasks.ListApplications" classpath="${wsanttasks.jar}" />
<taskdef name="wsAdmin" classname="com.ibm.websphere.ant.tasks.WsAdmin" classpath="${wsanttasks.jar}" />
-->
<!-- update information
<target name="wsUpdateApp" description="Update Application ${app.name}">
<wsUpdateApp user="${username}" password="${password}" host="${host}"
ear="${ear.file}" appname="${app.name}" port="${port}" conntype="${conntype}" washome="${was.root}"
options="-operation update -cluster ${cluster} -contextroot ${contextroot} -contents ${ear.file}">
</wsUpdateApp>
</target>
-->
<!-- List APP-->
<target name="wsListApps" description="List All Applications">
<taskdef name="wsListApps" classname="com.ibm.websphere.ant.tasks.ListApplications" classpath="${wsanttasks.jar}" />
<wsListApps conntype="${conntype}" host="${host}" port="${port}"
user="${username}" password="${password}" washome="${was.root}">
</wsListApps>
</target>
<target name="wsUninstallApp" depends="wsListApps" description="Uninstall an Enterprise Application">
<taskdef name="wsUninstallApp" classname="com.ibm.websphere.ant.tasks.UninstallApplication" classpath="${wsanttasks.jar}" />
<!-- Uninstall an Enterprise Application under the profile specified. -->
<wsUninstallApp washome="${was.root}" application="${app.name}" conntype="${conntype}"
options="-cluster ${cluster} -appname ${app.name} -usedefaultbindings"
host="${host}" port="${port}" user="${username}" password="${password}" failonerror="false" />
<!-- Invoke listapps target to list installed applications. -->
<antcall target="wsListApps" />
</target>
<target name="wsInstallApp" depends="wsUninstallApp" description="Install Application ${app.name}">
<taskdef name="wsInstallApp" classname="com.ibm.websphere.ant.tasks.InstallApplication" classpath="${wsanttasks.jar}" />
<wsInstallApp user="${username}" password="${password}" host="${host}"
ear="${ear.file}" port="${port}" conntype="${conntype}" washome="${was.root}"
options="-cluster ${cluster} -appname ${app.name} -usedefaultbindings -contextroot ${context.root}">
</wsInstallApp>
<antcall target="wsListApps" />
</target>
</project>
评论
我正在学习如何实现was集群自动部署,很多东西都不理解。请问您这篇博客中的代码要怎么使用,我不理解。
发表评论
-
Portlet deployment fails with 'A composition unit with name already exists'
2014-11-13 08:45 837http://www-01.ibm.com/support/ ... -
WAS 缓存
2011-09-09 14:15 1213在项目中经常遇见这 ... -
Window下WebSphere Application Server 7的安装
2011-08-17 23:05 4478Window 下 WebSphere App ... -
WebSphere6.1下DB2数据源配置
2011-08-03 09:43 1397转: http://julian ... -
websphere jvm参数修改
2011-07-19 10:50 2731eg: 如果修改jvm 中内存之类参数 (express 7. ... -
如何选择Rational测试工具
2011-03-29 16:13 923转 手把手教你如何选 ... -
使用 Log Analyzer 进行第 1 阶段问题确定
2011-03-08 17:15 1354转 使用 Log Analyzer 进行第 1 ... -
配置并使用 WebSphere Commerce 自动化数据收集器
2011-03-04 17:24 914转 WebSphere Commerce 自动化数据收集器已 ... -
IBM Support Assistant
2011-03-04 11:11 1573转 使用 IBM Support Assis ... -
WebSphere应用服务器内存泄漏探测与诊断工具选择最佳实践
2011-03-03 17:18 1135转 WebSphere应用服务器内存泄漏探测 ... -
Unable to parse setupCmdLine: null\bin\setupCmdLine.bat 解决
2011-02-11 17:39 1459Unable to parse setupCmdLine: ... -
IBM WebSphere Business Events eXtreme Scale V7.0 for Windows
2011-01-28 09:19 1376The following table lists the d ... -
was 集群 启动节点错误
2011-01-17 09:58 3338错误信息: Error occurred during ... -
Websphere 入门基础 第一课 电子商务基础知识
2008-01-28 11:58 8081.1 电子商务理念 1.2 Inter ... -
Websphere 入门基础 第二课 电子商务应用框架
2008-01-28 12:36 7402.1 基本系 ... -
Websphere 入门基础 第三课 WebSphere Studio应用开发
2008-01-28 12:39 8503.1 Lotus ... -
Websphere 入门基础 第四课 Java Servlet技术
2008-01-28 12:40 8254.1 Servlet简介 ... -
Websphere 入门基础 第六课 WebSphere应用服务器
2008-01-28 12:53 10116.1 基本 ... -
Websphere 入门基础 第七课 WebSphere应用编程
2008-01-28 12:54 9447.1 数据库应用编程 ... -
Websphere 入门基础 第九课 IBM WebSphere Studio实验以及应用开发实验的设置指导
2008-01-28 12:55 792引言 第1部分 ...
相关推荐
非常完整、详细的Was集群安装部署及打补丁文档,自己辛苦完善希望对学习was安装的朋友有帮助
was集群部署方案及安装配置手册
WAS最新版本was9集群部署,使用IHS转发请求,文档详细有截图,有命令,基于Linux + WAS8.5安装、部署过程 _WIN7 64位系统安装部署文档 。+ WAS9 集群 & IBM HTTP Server 9 部署文档
NC-was集群部署,主要是用友NC系统的IBMwas集群的安装部署文档
IBM WAS 自动部署脚本,方便实现无人值守部署J2EE应用
WAS7 集群安装部署配置 详细操作手册
WAS集群配置文档WAS集群配置文档WAS集群配置文档WAS集群配置文档WAS集群配置文档WAS集群配置文档WAS集群配置文档WAS集群配置文档
linux环境下was中间件集群部署手册ha方式
2月27日讲师彭海辉南航WAS集群部署实践
J2EE集群设计开发部署(基于IBM+WAS) J2EE集群设计开发部署(基于IBM+WAS)
由于在银行部署公司的产品,行方的环境异常复杂,对于中间件集群这块,没有现有的文档可供参考,因此,该文档起到抛砖引玉的作用,可以让开发工程师和实施工程师对WAS下的集群有所了解,以便更好的可以和行方进行...
Was7 集群部署及 IHS实现方式 Was7 集群部署及 IHS实现方式
在最新的v6.x版本中还提供集群管理以及在一个或多个节点作用域内进行应用程序服务器工作负载平衡。 图 2. 由Deployment Manager提供管理功能来修改单元的主配置文件 1.3 节点Node 节点是受管服务器(Server)的...
WAS7.0+windows+集群安装部署
此文档内容:WAS9 集群双机部署 、 IBM HTTP Server 9 安装 及 plugin配置转发
在was集群中,通常需要设置session共享,按照文档步骤可以完成session共享设置,解决你应用中的问题
was集群配置,7.0的版本,比较详尽的截图
LINUX环境中WAS水平集群部署手册,主要针对版本为NC6.5