用Weblogic WLST腳本 遠(yuǎn)程部署Web應(yīng)用

          廢話少說 直接上代碼
           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 閱讀(3407) 評論(1)  編輯  收藏 所屬分類: 系統(tǒng)管理JEERuby/Python/Ceylon

          評論

          # re: 用Weblogic WLST腳本 遠(yuǎn)程部署Web應(yīng)用 2012-09-20 15:44 馬宗飛

          是哪個文件?  回復(fù)  更多評論   

          導(dǎo)航

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

          統(tǒng)計

          隨筆分類(139)

          Linux內(nèi)核

          搜索

          •  

          積分與排名

          • 積分 - 320259
          • 排名 - 178

          最新評論

          閱讀排行榜

          主站蜘蛛池模板: 拉萨市| 天柱县| 麟游县| 祁门县| 民和| 咸宁市| 临邑县| 平武县| 当雄县| 宁津县| 新干县| 灵宝市| 衡山县| 武平县| 阳西县| 宝山区| 新干县| 怀仁县| 乌什县| 开远市| 邹城市| 盈江县| 浦城县| 吉林市| 和硕县| 邵阳县| 西乌| 弋阳县| 赫章县| 铁岭县| 佛冈县| 裕民县| 芮城县| 桃江县| 大渡口区| 彭水| 河津市| 西城区| 松桃| 和田市| 景洪市|