SlickDeploy - PowerPoint PPT Presentation

1 / 58
About This Presentation
Title:

SlickDeploy

Description:

WebSphere User Group. 29th June 2006. Fictitious Organisation ... WebSphere User Group. 29th June 2006. What is deployment. Install the package the EAR file ... – PowerPoint PPT presentation

Number of Views:51
Avg rating:3.0/5.0
Slides: 59
Provided by: websphereu
Category:

less

Transcript and Presenter's Notes

Title: SlickDeploy


1
Slick-Deploy
  • WebSphere 6 Deployment Tool
  • Jatin Bhadra
  • WebSpere User Group 29th June 2006

2
Agenda
  • Manual build and deployment process
  • Disadvantage of Manual process
  • How Slick-Deploy can improve?
  • Future enhancement in Slick-Deploy
  • Questions

3
Fictitious Organisation
  • Organisation Personal and General Insurance
  • Several Developer Teams
  • 30 40 applications
  • 4 Environments, FTE, NFTE, PPTE, Prod
  • 1 Deployer/SysAdmin Team

Dev Team
Sys Admin
Dev Team
Dev Team
PandG
4
Application Build
5
TimeLine
Today
Manual
6
Manual Process
Writes code
Generates ear
EAR
Developers
WAS
installs
EAR
Deployer
7
After few releases
There is bug in Production. I am not sure which
version of source is running in Production!!!!!
L
8
Build Process
  • Developer send the EAR file to deployer in email
    or in copies on a share

9
Automated build Process
  • Extract Source from Version Control System
  • Compile the code using automated scripts
  • Package the code

10
Advantages of Automated Build
  • Enforce Standards
  • Consistent use of Third-party and Java Compilers
  • Can locate any version of EAR
  • Faster builds and process driven builds

11
TimeLine
Today
Automated Build
Manual
12
Application Deployment
13
What is deployment
  • Install the package the EAR file
  • Change the configuration of the application

EAR
WAS
Deployer
14
EAR Configuration JNDI Name
15
EAR Configuration ejb-ref bnds
EJB
EJB
EJB
WEB
WEB
Security
ejb-ref
EAR
16
EAR Configuration res-ref bnds
EJB
EJB
DataSource
WEB
WEB
JMS Queue
Security
res-ref
Resources
17
Application Configuration Maze
Datasource
JMS
18
In Summary
  • JNDI names for the EJBs
  • JNDI mapping to ejb-refs and res-refs
  • Virtual Host mapping to web-module

19
Deployment Communication Process
How will I get the config info?
How do I tell the deployer?
20
Deployment Communication Process Attempt 1
Well done
Why tell? I have all configs in EAR correct
21
After few drop, app become complicated Attempt
1 fails
Oops!! One of our developers has miss configured
an existing JNDI name
Oh! You are using wrong DS JNDI and affecting
other apps
22
Deployment Communication Process Attempt 2
Good man
Brilliant idea!
Send him a document
23
After few deploys using document Attempt 2 fails
I hope it works
I hope he deploys it correct!!
24
Need to be repeatable
25
Disadvantages of Trusting Developers
Documentation
  • Time Consuming
  • Error Prone
  • Tedious
  • Non Repeatable
  • Risky

26
Now what
Yeah right! Jython is complicated
Lets automate it
27
Introduction to Slick-Deploy
  • Open Source - free
  • Generic XML based
  • ANT based
  • Easy!!

28
What can Slick Deploy do
  • Stop writing Documentation
  • Create an XML file deploydata.xml

Slick- Deploy
Deploy Data.xml
generate
read
EAR
EAR
29
Deploy
Slick- Deploy
WAS ND Dep manager
Node 1
deploy
Node 2
Node 3
host, port, protocol
Node 4
30
Deploydata Section - Security
  •     
                
      name"SpecialRoleName"    name"AllAuthenticatedUsers" /    name"Everyone" /  

Security
Group
EAR
31
Deploydata Section - EJB
  • module-ds-bnd"jdbc/Trade3/TradeDataSource"
  •   messagelistner"trade3tradeport"   
        ing name"TradeEJB" jndi-name"ejb/Trade3/Trade"
           ectionFactory"          name"jms/Trade3/TradeBrokerQCF" /      
        ding    name"HoldingEJB" jndi-name"ejb/Trade3/Holding"
                    
    /          

DS
EJB
EJB
EJB JNDI
EJB
EAR
32
Deploydata Section - Web
  • virtualhost"www_host"    name"ejb/Trade"       name"ejb/Trade3/Trade" /   
        nFactory"       name"jms/Trade3/TradeBrokerQCF" /      
        name"jms/TradeBrokerQueue"      
    /   
    virtualhost"www_host"

WEB
WEB
DS
EJB
Virtual host
EAR
33
Deploydata Section libraries/staring weight
  • /

34
Environment Configuration
  • Create a Build and Deploy Server
  • Install the WebSphere Client
  • Install ANT and your ANT Scripts
  • All the apps to all WAS boxes are deployed from
    here

Where do I install SlickDeploy?
35
Deployment Server Push Approach
Deploy ANT Script
SD Ant jar
Deploy
WAS Client
WAS Dep Manager
SD Deploy jar
36
Deploydata location
  • In version control system with your EAR file
    versioned together

Where to keep DD.xml
37
How to write an automated script?
EAR Deploy Data.xml
extract
EAR process
Deploy Data.xml
Target Web- Sphere
WAS ND
deploy
Copy deploy
38
Slick-Deploy ANT tasks
How do I write SD ANT tasks
39
Deploy EAR Process
  • earFileLocation"c/ear/Trade3.ear
  • deployDataLocation"c/deploydata/Trade3-deploydat
    a.xml" /

40
Deploy ANT Task
  • applicationName"Trade3"
  • cell"MyCell01" port"8889" host"MyHost"
  • cluster"Test-CL
  • earFileLocation"c/SlickDeploy/ear/Trade3.ear
  • deployDataLocation"c/Trade3-deploydata.xml"
  • userName"wasadmin" password"wasadmin"
  • failIfResourceAbsent"No" webserver"IIS"
    connectionType"SOAP" /

41
How to write an automated script?
EAR Deploy Data.xml
Query host, Port, Uname Password
extract
EAR process
Deploy Data.xml
ANT file
Target Web- Sphere
WAS ND
deploy
Copy deploy
42
DDCreater
  • Pass the location of EAR file.
  • Pass the location where deploydata.xml file
    should be created.

Do I have to write the deploydata
43
What do the deployers feel?
Wow! Just answer a few questions and sit and
watch the deployment progress!!!
44
Why automate?
  • Repeatable deployment without manual
    intervention.
  • No manual error.
  • Reduce deployment time of application by 50.
  • Reduce the human resource required for deploying
    the application.
  • Reduce the amount of documentation developers and
    deployers need to produce and hence technical
    staff can concentrate on technical work.

45
(No Transcript)
46
TimeLine
Auto App Deployment
Today
Manual
47
Resources?
But I still have to create the resources, Servers
etc. What about that?
48
Patience! Next release
  • Server/Cluster creation/update
  • JDBC Provider creation/update
  • DataSource creation/update
  • JMS Queue/Destination creation/update
  • Environment Specific configuration

49
TimeLine
Auto Resource/env creation
Next Release
Auto App Deployment
Manual
50
TimeLine
GUI User Interface
Future
Auto Resource/env creation
Auto App Deployment
Manual
51
TimeLine
Autotrigger Reports
GUI User Interface
Future
Auto Resource/env creation
Auto App Deployment
Manual
52
Questions
53
Cmd line
  • "JAVA_HOME\bin\java" -Duser.install.rootc\ANT\
    workfile" -classpath "ANT_HOME\lib\ant-launche
    r.jarANT_HOME\lib\SlickDeployTask.jar
    ANT_HOME\lib\ant.jarDEPLOY_LIB\SlickDeploy.j
    ar" -Dcom.ibm.CORBA.ConfigURL
    file.../Custom01/properties/sas.client.props "
    -Dant.homeANT_HOME" -Djava.util.logging.con
    fig.fileloggingConfigFile org.apache.tools.an
    t.launch.Launcher -buildfile C\ant\deploy.xml

54
Register SlickDeploy with ANT
  • taskdef

55
Extract from version control
  • Exec,
  • Version control custom tasks

VCS
extract
ear
DD
56
Process the EAR file
  • SlickProcess

DD
ear
extract
ear
57
Copy to the ND
  • Copy

ear
copy
WAS ND
58
Deploy the app
  • slickdeploy

ear
install
WAS ND
59
WebSphere Architecture
WAS ND
Node 1
Node 2
Node 3
Node 4
Cell
60
Application Server
Application Server
Application Server
App
Node
61
How is it written
  • DeploydataReader
  • Read the deploydata
  • EARProcesser
  • Process the EAR with deploydata.xml
  • Deploy
  • Deploy the application

62
References
  • http//www-128.ibm.com/developerworks/websphere/te
    chjournal/archive.html
  • WebSphere Application Server V6 System Management
    and Configuration Handbook sg246451.pdf
  • IBM press IBM WebSPere System Administration
    Leigh Williamson, Lavena Chan, Roger Cundiff,
    Shawn Lauzon, Christopher Mitchell
Write a Comment
User Comments (0)
About PowerShow.com