猫猫1 发表于 2017-2-14 07:16:41

using wlts in weblogic

  0: usful links as follow
  weblogic wlts document link (chinese):

  http://www.oraclefmw.com/wls92/config_scripting/index.html


  weblogic mbean reference (english):

  http://download.oracle.com/docs/cd/E13222_01/wls/docs90/wlsmbeanref/core/index.html


  weblogic code examples (english):


  http://webservice.bea.com/examplesWebApp/docs/core/index.html


  一:create and
delete datasource

  目录(WINDOWS) :

  %WEBLOGIC_HOME%\samples\server\examples\src\examples\wlst\online

  jdbc_data_source_creation.py

  jdbc_data_source_deletion.py

  


  二:deploy and undeploy apps


a:cmdline
java weblogic.Deployer -adminurl t3://localhost:7001 -username weblogic -password weblogic -name VacApl -undeploy
java weblogic.Deployer -adminurl t3://localhost:7001 -username weblogic -password weblogic -name VacApl -deploy C:/VacApl.ear
b:wlts
progress=deploy('VacApl', 'C:/CtcWorkSpace/ctcCenter/build/VacApl.ear')
progress.printStatus()
undeploy('VacApl')
progress=startApplication('VacApl')
progress.getState()
progress=stopApplication('VacApl')
progress.isRunning()
页: [1]
查看完整版本: using wlts in weblogic