WebLogic Serverデプロイメント・エッセンシャルズ

  • View
    2.767

  • Download
    0

Embed Size (px)

DESCRIPTION

WebLogic ServerFastSwap

Transcript

  • 1. Copyright 2013, Oracle and/or its affiliates. All rights reserved.1WebLogic Server DeploymentEssentials 20130620

2. Copyright 2013, Oracle and/or its affiliates. All rights reserved.2OracleJavaOracle Corporation 3. Copyright 2013, Oracle and/or its affiliates. All rights reserved.3 4. Copyright 2013, Oracle and/or its affiliates. All rights reserved.4 5. Copyright 2013, Oracle and/or its affiliates. All rights reserved.5 WebLogic = 2 () () () 6. Copyright 2013, Oracle and/or its affiliates. All rights reserved.6 Java EE (EAR) EJB (JAR) Web (WAR) (RAR) Java EE JDBC, JMS, WLDFTips: 7. Copyright 2013, Oracle and/or its affiliates. All rights reserved.73 () 2 () weblogic.DeployerWLST () $DOMAIN/autodeploy 8. Copyright 2013, Oracle and/or its affiliates. All rights reserved.8[] 9. Copyright 2013, Oracle and/or its affiliates. All rights reserved.9TIPS: 10. Copyright 2013, Oracle and/or its affiliates. All rights reserved.10 () (stage) (nostage) 11. Copyright 2013, Oracle and/or its affiliates. All rights reserved.11 12. Copyright 2013, Oracle and/or its affiliates. All rights reserved.12 2 (stage/nostage) 13. Copyright 2013, Oracle and/or its affiliates. All rights reserved.13webApp.warwebApp.warstageuploadwebApp.warserversstagewebApp.warserverswebApp.war(/) 14. Copyright 2013, Oracle and/or its affiliates. All rights reserved.143 stage()nostageJSP()external_stage 15. Copyright 2013, Oracle and/or its affiliates. All rights reserved.15[] [] [] nostage stage 16. Copyright 2013, Oracle and/or its affiliates. All rights reserved.16 WLST weblogic.Deployer distributeApplication() -distribute startApplication() -start stopApplication() -stop undeploy() -undeploy deploy() -deploy undeploy() -undeploy redeploy() -redeployWLSTweblogic.Deployer* () 17. Copyright 2013, Oracle and/or its affiliates. All rights reserved.17: deploy() deploy(appName, path, [targets], [stageMode], [planPath],[options])appName: undeploy()undeploy(appName,[targets],[options])redeploy()redeploy(appName, [planPath], [options])startApplication() startApplication(appName, [options])option: adminMode=true stopApplication() stopApplication(appName, [options])distributeApplication() distributeApplication(appPath, [planPath], [targets],[options]) appName appPath listApplications()listApplications()WLST 18. Copyright 2013, Oracle and/or its affiliates. All rights reserved.18: a. (stage)b. c. weblogic.Deployer$ java weblogic.Deployer -adminurl t3://localhost:7001 -username weblogic -passwordweblogic1 -deploy -name webApp -targets ManagedServer1 -source /u01/work/app/WebApp.war-stage$ java weblogic.Deployer -adminurl t3://localhost:7001 -username weblogic -passwordweblogic1 -undeploy -name webApp -targets ManagedServer1$ java weblogic.Deployer -adminurl t3://localhost:7001 -username weblogic -passwordweblogic1 -redeploy -name myApp -targets module1.war@ManagedServer1 19. Copyright 2013, Oracle and/or its affiliates. All rights reserved.19 20. Copyright 2013, Oracle and/or its affiliates. All rights reserved.20 NOTE: -listtask : -list id xx : -cancel -id xx : 21. Copyright 2013, Oracle and/or its affiliates. All rights reserved.21 22. Copyright 2013, Oracle and/or its affiliates. All rights reserved.22 plan.xmlreference-descriptor:DevDataSourcecontext-root:myApp1myApp.earplan.xmlreference-descriptor:QADataSourcecontext-root:myApp1myApp.earQAplan.xmlreference-descriptor:ProdDataSourcecontext-root:ordermyApp.ear 23. Copyright 2013, Oracle and/or its affiliates. All rights reserved.23appplanwebApp.warplan.xml(appplan)(OK)(:- : weblogic.PlanGenerator- : )$ java weblogic.PlanGenerator root /u01/work/app_install 24. Copyright 2013, Oracle and/or its affiliates. All rights reserved.24TIPS: source plan $ java weblogic.Deployer -adminurl t3://localhost:7001 -username weblogic -password weblogic1 -deploy -name webApp -targets ManagedServer1 -source/u01/work/app_install/app/webApp.war plan /u01/work/app_install/plan/plan.xml 25. Copyright 2013, Oracle and/or its affiliates. All rights reserved.25plan.xml(IDE, )Override() 26. Copyright 2013, Oracle and/or its affiliates. All rights reserved.26 27. Copyright 2013, Oracle and/or its affiliates. All rights reserved.27appplanwebApp.warplan.xmlAppFilesOverrideswebApp.warmyApp.properties(.properties)- - planAppFilesOverrides- ClassLoader#getResourceAsStream()(ServletContext#getResourceAsStream()) 28. Copyright 2013, Oracle and/or its affiliates. All rights reserved.28 () + 29. Copyright 2013, Oracle and/or its affiliates. All rights reserved.29 WebLogic Server 2 30. Copyright 2013, Oracle and/or its affiliates. All rights reserved.30WebLogic ServerWebApp (v1)WebApp (v2)WebLgoic ServerNOTE: or 31. Copyright 2013, Oracle and/or its affiliates. All rights reserved.31 Web(war) HTTPJMS(ear) Web Web Web 32. Copyright 2013, Oracle and/or its affiliates. All rights reserved.32 MANIFEST.MF Weblogic-Application-Version weblogic.Deployer appversion WLSTdeploy versionIdentifier : , .,_,- 33. Copyright 2013, Oracle and/or its affiliates. All rights reserved.33 34. Copyright 2013, Oracle and/or its affiliates. All rights reserved.34WebLogic ServerWebApp (v1)WebApp (v2) NOTE: 35. Copyright 2013, Oracle and/or its affiliates. All rights reserved.351. 2. 3. $ java -Dweblogic.security.TrustKeyStore=DemoTrust -Dweblogic.security.SSL.ignoreHostnameVerification=true weblogic.Deployer -adminurlt3s://localhost:9002 -username weblogic -password weblogic1 -distribute -name webApp -targetscluster1 -source v1/WebApp.war$ java -Dweblogic.security.TrustKeyStore=DemoTrust -Dweblogic.security.SSL.ignoreHostnameVerification=true weblogic.Deployer -adminurlt3s://localhost:9002 -username weblogic -password weblogic1 -start -name webApp -targets cluster1-appVersion v1 -adminmode$ java -Dweblogic.security.TrustKeyStore=DemoTrust -Dweblogic.security.SSL.ignoreHostnameVerification=true weblogic.Deployer -adminurlt3s://localhost:9002 -username weblogic -password weblogic1 -start -name webApp -targets cluster1-appVersion v1 36. Copyright 2013, Oracle and/or its affiliates. All rights reserved.36: TIPS: WLST (t3t3s) 37. Copyright 2013, Oracle and/or its affiliates. All rights reserved.37autodeploywebAppBwebAppA.warWEB-INFREDEPLOY$DOMAIN/autodeploy - - ()()()- OKREDEPLOY(=) 38. Copyright 2013, Oracle and/or its affiliates. All rights reserved.38FastSwap WEB-INF/classesAPP-INF/classes (weblogic.xml)FastSwapNote: FastSwapJavaEnumfinalize 39. Copyright 2013, Oracle and/or its affiliates. All rights reserved.39OEPE+ Oracle Enterprise Pack for Eclipse_auto_generated_ear_ Java HTML class .beabuild.txtOEPEear 40. Copyright 2013, Oracle and/or its affiliates. All rights reserved.40OEPE 41. Copyright 2013, Oracle and/or its affiliates. All rights reserved.41 WebLogic Server 42. Copyright 2013, Oracle and/or its affiliates. All rights reserved.42 43. Copyright 2013, Oracle and/or its affiliates. All rights reserved.43Oracle University WebLogic Server ClassroomLive Virtual ClassOracle 44. Copyright 2013, Oracle and/or its affiliates. All rights reserved.44Oracle Fusion Middleware Oracle WebLogic ServerWebLogic Server JMS Oracle HTTP Server WebLogic ServerOracle WebLogic Server JDBCWebLogic ServerOracle WebLogic Linux / TCP/IP Java EE JSP Oracle WebLogic Server 11g/12c Java Oracle University Web Oracle PartnerNetworkOracle Application GridOracle WebLogic Server 11gWebOracle WebLogic Server 11gWebWLSTJava EEOracle WebLogic Server 11gOracle WebLogic Server WebOracle HTTP ServerOracle WebLogic ServerWebLogic ServerOracle WebLogic Server 11g : 2013826() 30() WLS12c 45. Copyright 2013, Oracle and/or its affiliates. All rights reserved.45 201371 201378 WebLogic Server 46. Copyright 2013, Oracle and/or its affiliates. All rights reserved.46 47. Copyright 2013, Oracle and/or its affiliates. All rights reserved.47