Professional Documents
Culture Documents
05 Deploying Apps
05 Deploying Apps
Deploying applications
Overview of Deployment
• Administrators
• Production environment
• Multiple WebLogic Server instances
or clusters
• Deploy infrequently during maintenance
schedules
2
Deployment Methods
3
Weblogic Console Deployment
4
Deployment with weblogic.Deployer
5
Deploying an Application with WLST
• Deploy an application (deployapp.py):
##
# WLST script for Deploying Java EE Application #
##
appname = "mbeanlister"
applocation = "c:/domains/MedRecDomain/apps/mbeanlister"
# Start deploy
print 'Deploying application ' + appname
deploy(appname, applocation, targets='myserver',
planPath='c:/myapps/plan/plan.xml')
print 'Done Deploying the application '+ appname
exit()
6
Autodeployment
7
FastSwap and On-Demand Deployment
8
Deployment Plan
9
Deployment Plan
MyEJB.jar
contains the deployment descriptor
weblogic-ebj-jar.xml.
1 2 3
Oracle WebLogic Server Oracle WebLogic Server Oracle WebLogic Server
QAPlan.xml ProductionPlan.xml
<variable> <variable>
<name> <variable>
<name> <name>
myresource myresource
myIdleTimeout
</name> </name>
No Plan </name>
<value> <value> <value>
QADataSource GADataSource
200
</value> </value> </value>
</variable> </variable> </variable>
10
Sample Deployment Plan
11
Creating Deployment Plan
12
Production Redeployment
Side by Side Deployment
14
In-place Partial Redeployment
System ClassLoader
• Classloader hierarchy enables
redeployment flexibility
• Web applications can be redeployed
without redeploying the EJB tier Application
• The JSP class has its own ClassLoader EJB1
classloader, which is a child of the
Web application classloader. This
allows JSPs to be individually
reloaded. Web CL Web CL
• Newer versions of application
modules such as EJBs can be
deployed while the server is running
EJB2 CL
• Custom classloader hierarchies
provide even more flexibility JSP CL JSP CL
JSP CL JSP CL
JSP CL