用Weblogic WLST脚本 远程部署Web应用

废话少说 直接上代码
 1 import re
 2  
 3 warPath = 'helloWebApp'
 4 serverUrl = 't3://192.168.1.100:7001'
 5 username = 'weblogic'
 6 password = 'weblogic'
 7 targetServer="examplesServer"
 8 deployAppName='DeployExample2'
 9 
10  
11 connect(username, password, serverUrl)
12  
13 appList = re.findall(deployAppName, ls('/AppDeployments'))
14 print "========================="
15 print len(appList)
16 if len(appList) > 0:
17     #oldestArchiveVersion = min(map(int, appList))
18     print 'come in!!!'            
19     undeploy(deployAppName)
20  
21 #deploy(appName='DeployExample', path = 'helloWebApp', targets = 'examplesServer',timeout=600000, block = 'true')
22 
23 deploy(deployAppName, warPath, targets=targetServer, securityModel = "Advanced",timeout=600000, block = "true")
24 exit()
Ok

posted on 2011-10-13 23:46 kuuyee 阅读(3372) 评论(1)  编辑  收藏 所属分类: 系统管理JEERuby/Python/Ceylon

评论

# re: 用Weblogic WLST脚本 远程部署Web应用 2012-09-20 15:44 马宗飞

是哪个文件?  回复  更多评论   


只有注册用户登录后才能发表评论。


网站导航:
 

导航

<2011年10月>
2526272829301
2345678
9101112131415
16171819202122
23242526272829
303112345

统计

随笔分类(139)

Linux内核

搜索

积分与排名

最新评论

阅读排行榜