set appManager [$AdminControl queryNames type=ApplicationManager,cell=$cellname,node=$nodename,process=server1,]
This command gets the name of the application manager Mbean
for the applications running on the server
set app [$AdminControl queryNames
type=Application,cell=$cellname,node=$nodename,process=server1,J2EEName=ivtApp,]
This command gets the application detail and assigns it to a
variable
set appName [$AdminControl getAttribute $app name]
This command gets the application name and assigns it to a
variable
$AdminControl invoke $appManager stopApplication $appName
This command stops the ivtApp按照你的说法,你使用的开发工具是eclipse或者myeclipse? 如果说是很好办,直接在项目名上右键->EXPORT->打包成war文件,把得到的项目名称war文件放到tomcat安装目录下的webapp文件夹下,然后启动tomcat就行了。
如果没有上述的IDE,会相对麻烦一些,可以百度一下,使用java自带的打包工具,将项目打成war包,然后进行上述步骤就行了。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)