BM Web Sphere Application Server v6 pplication Manag 叫 ND: DBI%删E IBM Proof of Technolo O2005 3M Corporasan IBM Product Introduction Exploration IBM Software Group I Web Sphere software Agenda Application Management Overview Application Installation and Configuration Fine-grained Application Update Enhanced ear Application Server Toolkit(AST)
1 ® IBM Software Group © 2005 IBM Corporation IBM Proof of Technology IBM Product Introduction + Exploration IBM WebSphere Application Server v6 Application Management IBM Software Group | WebSphere software WebSphere Application Server v6 Agenda Application Management Overview Application Installation and Configuration Fine-grained Application Update Enhanced Ear Application Server Toolkit (AST)
BM Software Group WebSphere software Section Overview IBM Software Group I Web Sphere software J2EE Deployment Cycle Model Write and compile code C mpe del Rational populate Deploy Descriptors and package Assemble AST EAR file EAR fi Install the eAr Configure application During and after installation b Bindings, Deployment Target ication Web Sphere Application Server Update Application Admin Clients
2 IBM Software Group | WebSphere software WebSphere Application Server v6 Overview Section IBM Software Group | WebSphere software WebSphere Application Server v6 J2EE Deployment Cycle Model Write and compile code Populate Deployment Descriptors and package EAR file Install the EAR Configure application During and after installation Bindings, Deployment Target Information, etc Update Application Rational Tooling and AST WebSphere Application Server Admin Clients Write and Compile code Assemble EAR file Install Application Configure Application Update Application
Stand Alone Server: Application End to End Install/Manage Admin client Applicati Web client IBM Software Group I Web Sphere software Network Deployment: Application-End to End Admin c Target=Node A, Server A Sync Web client 白 CELL
3 IBM Software Group | WebSphere software WebSphere Application Server v6 Stand Alone Server: Application – End to End Install/Manage Web Server Config Files Web client Admin client EJB client IBM Software Group | WebSphere software WebSphere Application Server v6 Network Deployment: Application – End to End Node Agent Server A Node A Server B Node Agent Server C Node B Server D Config Config Files Files Config Files Admin Client Install/Manage Synch Target=Node A, Server A EJB Client Web Server Web client
J2EE SI Support at J2EE 1.4 Backward compatibility for J2EE 1.2 and J2EE 1.3 applications J2EE 1.4 EAR files can contain j2EE 1.2 and j2EE 1.3 modules Stub Generation Packaging deployment code with clients (ejbdeploy) Client view jar contains remote interfaces and stubs EJB implementation jar contains the bean and ties b Web Sphere does not require this structure, but can generate it with tools Application Deploy PI (JSR 88) J2EE 1.4 deployment model Alternative to Web Sphere Administrative clients(Admin Console, wsadmir IBM Software Group I Web Sphere software Application Installation and Configuration
4 IBM Software Group | WebSphere software WebSphere Application Server v6 J2EE Support Support at J2EE 1.4 Backward compatibility for J2EE 1.2 and J2EE 1.3 applications J2EE 1.4 EAR files can contain J2EE 1.2 and J2EE 1.3 modules Stub Generation Packaging deployment code with clients (ejbdeploy) Client view jar contains remote interfaces and stubs EJB implementation jar contains the bean and ties WebSphere does not require this structure, but can generate it with tools and exploit it at deployment Application Deployment API (JSR 88) J2EE 1.4 deployment model Alternative to WebSphere Administrative clients (Admin Console, wsadmin, custom) IBM Software Group | WebSphere software WebSphere Application Server v6 Application Installation and Configuration Application Installation and Configuration Section
BM Software Group WebSphere software Tools Administrative Console JMX Clients Ant Scripts IBM Software Group I Web Sphere software Installing an Application Using Admin Console Administrative Console provides a wizard Deployer provides necessary information )JNDi names of ejbs b Target Mappings to server/cluster Can map application to a Web server Web services bindings Applications >Enterprise Applications >Install an 5
5 IBM Software Group | WebSphere software WebSphere Application Server v6 Tools Administrative Console wsadmin JMX Clients Ant Scripts IBM Software Group | WebSphere software WebSphere Application Server v6 Installing an Application Using Admin Console Administrative Console provides a wizard Deployer provides necessary information: JNDI names of EJBs Target Mappings to server/cluster Can map application to a Web server Web services bindings Applications >Enterprise Applications >Install an Application
BM Software Group WebSphere software Installing a New Application Using wsadmin Interactive install Prompts user for binding information sAdminApp installInteractive c: /My App1ear Non-interactive install Bindings could be pre-configured in EAR or specified on command SAdminApp install C: /My App1ear b Use the wsadmin -conntype NONE option if server is stopped IBM Software Group I Web Sphere software Other Operations Administrative Console has uninstall function Applications can also be started and stopped Export applications to file system Lits installed ape的 nt A phg appian can be de时mupe stan stop Install Uninstall Update Rolau Update Ramow Fla Epar Expert De I
6 IBM Software Group | WebSphere software WebSphere Application Server v6 Installing a New Application Using wsadmin Options Interactive install Prompts user for binding information $AdminApp installInteractive c:/MyApp1.ear Non-interactive install Bindings could be pre-configured in EAR or specified on command $AdminApp install c:/MyApp1.ear Use the wsadmin –conntype NONE option if server is stopped IBM Software Group | WebSphere software WebSphere Application Server v6 Other Operations Administrative Console has uninstall function Applications can also be started and stopped Export applications to file system
BM Software Group WebSphere software Section Fine-grained Application Update IBM Software Group I Web Sphere software Application Update Overview Fine-grained update Capability to update parts or all of a running application b Allows application sub-components to be supplied b Restart parts of the application Preserves application configuration Classloader settings, shared libraries, etc 7
7 IBM Software Group | WebSphere software WebSphere Application Server v6 Fine-grained Application Update grained Application Update Section IBM Software Group | WebSphere software WebSphere Application Server v6 Application Update Overview Fine-grained update Capability to update parts or all of a running application Allows application sub-components to be supplied Restart parts of the application Preserves application configuration Classloader settings, shared libraries, etc
Input to Application Update Process Entire application or its components Complete Application Provided in ear file Application Modules plication modules can be added, removed or updated Partial Application Zip file which contains application artifacts b Individual Application Files For additions and updates, the file and the URi relative to eaR root is provided Application Change Options Remove IBM Software Group I Web Sphere software Update Using Partial Application Partial Application is a zip file containing application artifacts(it is not a valid j2ee archive) Same hierarchical structure as they appear in the application EAR file During update, the contents are added or replaced within the deployed application EAR If the update zip contains a jar file, then the entire jar is replaced 8
8 IBM Software Group | WebSphere software WebSphere Application Server v6 Input to Application Update Process Entire application or its components Complete Application Provided in ear file Application Modules Individual application modules can be added, removed or updated Partial Application Zip file which contains application artifacts Individual Application Files For additions and updates, the file and the URI relative to EAR root is provided Application Change Options Add Remove Update IBM Software Group | WebSphere software WebSphere Application Server v6 Update Using Partial Application Partial Application is a zip file containing application artifacts (it is not a valid j2ee archive) Same hierarchical structure as they appear in the application EAR file. During update, the contents are added or replaced within the deployed application EAR If the update zip contains a jar file, then the entire jar is replaced
Update Using Partial Application Application EAR dule jal Partial Application ZIP a/b/File 1 燃 t/w/File 5 Modul Module2 war/m/n/File 3 /Module3. jar 一JARf WHIle 1 Final Application EAR k/File2 oulet a/b/File1 After Update Module2 wa e/f/File 1 a/b/File1 in Module.jar of the ear is replaced g/h/File m/n/File3 is added to module 2 war in Ear file m/n/File3 Module3. jar in the EAR is entirely replaced Module3. j t/u/File 5 IBM Software Group I Web Sphere software File deletions In a partial application, file deletion is specified using a special meta-data file META-INF/ibm-partialapp-delete props Can be at Application Scope or Module Scope Application EAR Partial Application ZIP Application EAR a/b/File 1 a/b/File 2 /Module1 jar/META-INFI Module1 ja e/f/File 1 ibm-partialapp-delete props Module 2w Module2 1/ 1 k/VFile2
9 IBM Software Group | WebSphere software WebSphere Application Server v6 Update Using Partial Application Application EAR Module1.jar a/b/File1 c/d/File2 Module2.war e/f/File1 g/h/File2 Module3.jar i/j/File1 k/l/File2 Partial Application ZIP /Module1.jar/a/b/File1 /Module2.war/m/n/File3 /Module3.jar JAR file After Update a/b/File1 in Module1.jar of the EAR is replaced m/n/File3 is added to Module2.war in EAR file Module3.jar in the EAR is entirely replaced Final Application EAR Module1.jar a/b/File1 c/d/File2 Module2.war e/f/File1 g/h/File2 m/n/File3 Module3.jar r/s/File4 t/u/File5 r/s/File4 t/u/File5 IBM Software Group | WebSphere software WebSphere Application Server v6 File Deletions In a partial application, file deletion is specified using a special meta-data file META-INF/ibm-partialapp-delete.props Can be at Application Scope or Module Scope Application EAR Module1.jar a/b/File1 a/b/File2 e/f/File1 Module2.war i/j/File1 k/l/File2 Partial Application ZIP /Module1.jar/META-INF/ ibm-partialapp-delete.props Application EAR (final) Module1.jar e/f/File1 Module2.war i/j/File1 a/b/File* k/l/File2
BM Software Group WebSphere software Application Restart Behavior Module level Start and Stop operations supported Update Scenario Default Behavior Module Addition(EJB Start new module if application is running. Other modules Web Module deletion Stop Web module if application is running and remove it. Other modules are not affected Web Module Updates For metadata changes, Web module is recycled. All other All other changes Restart the application, if running IBM Software Group I Web Sphere software Application Update User Interface Control Interfaces b Administrative Console b Programmatic MBean interface Rollout Update(ripple) feature provides 100% application availability b This can be selected in the Application Update User Interfaces b When this is selected the application update is applied on each node in turn 10
10 IBM Software Group | WebSphere software WebSphere Application Server v6 Application Restart Behavior Module level Start and Stop operations supported All other changes Restart the application, if running For metadata changes, Web module is recycled. All other changes are applied dynamically. Web Module Updates Stop Web module if application is running and remove it. Other modules are not affected. Web Module Deletion Start new module if application is running. Other modules are not affected. Module Addition (EJB, Web…) Update Scenario Default Behavior IBM Software Group | WebSphere software WebSphere Application Server v6 Application Update User Interface Control Interfaces Administrative Console wsadmin Programmatic MBean interface Rollout Update (ripple) feature provides 100% application availability This can be selected in the Application Update User Interfaces When this is selected the application update is applied on each node in turn