WebSphere software- Copyright IBM Corporation 2005. All rights reserved. IBM WebSphere Application Server Version 6.0: Proof of Technology Lab 03-Application Management What This exercise is about Web Sphere Application Server v6.0 provides various features which can be used to manage your J2EE 1.4 applications. This exercise will have you update a J2EE 1.4 application using various methods Web Sphere Application Server Version 6 provides facilities for assembling and deploying J2EE Enterprise Applications. This lab exercise will introduce you to the Application Server Toolkit (AST)and guide you through the process of installing an application into WebSphere. You will also become acquainted with some Web Sphere application serving features, as well as perform some common systems administration tasks using the browser based Administrative Console and command line administrative tools The Application Server Toolkit is made up of five components: Eclipse workbench, Assembly Toolkit, Debug component, Distributed Profiling component, and the Logging tools In this exercise, you will be using the Eclipse workbench and Assembly Toolkit components What you should be able to do At the end of this lab you should be able to Use the asT to inspect and make changes to an applications configuration Configure and install applications using the Administrative Console Update applications in Web Sphere Application Server v6 Create and Install Enhanced ears oof of Technology Lab 03-Application Management Product Introduction Exploration(PI+E Page 1 of 42
© Copyright IBM Corporation 2005. All rights reserved. Proof of Technology Lab 03 – Application Management Product Introduction + Exploration (PI+E) Page 1 of 42 IBM WebSphere Application Server Version 6.0: Proof of Technology Lab 03 - Application Management What This Exercise is about WebSphere Application Server v6.0 provides various features which can be used to manage your J2EE 1.4 applications. This exercise will have you update a J2EE 1.4 application using various methods. WebSphere Application Server Version 6 provides facilities for assembling and deploying J2EE Enterprise Applications. This lab exercise will introduce you to the Application Server Toolkit (AST) and guide you through the process of installing an application into WebSphere. You will also become acquainted with some WebSphere application serving features, as well as perform some common systems administration tasks using the browser based Administrative Console and command line administrative tools. The Application Server Toolkit is made up of five components: Eclipse workbench, Assembly Toolkit, Debug component, Distributed Profiling component, and the Logging tools. In this exercise, you will be using the Eclipse workbench and Assembly Toolkit components. What You Should Be Able to Do At the end of this lab you should be able to: • Use the AST to inspect and make changes to an application’s configuration. • Configure and install applications using the Administrative Console • Update applications in WebSphere Application Server v6. • Create and Install Enhanced Ears
Copyright IBM Corporation 2005. All rights reserved. Exercise Instructions This lab is divided into for Part One: Introduction to the Application Server Toolkit Part Two: Testing the deployed Default Application Part Three: Updating an Application using the Administrative Console Part Four: Introduction to enhanced ear Assumptions This workshop requires that the following products are installed WebSphere Application Server Version 6(ND) Application Server Toolkit (AST) The instructions for this exercise assume that the installation is being performed on a machine If you installed Web Sphere Application Server on another drive or directory, you will needto where the installation directory for Web Sphere Application Server is c: IWeb Sphere lApp Serv make appropriate allowances when following directions. The AST has been pre- installed on your machine and is ready for use in this exercise
© Copyright IBM Corporation 2005. All rights reserved. Lab 03 – Application Management Page 2 of 42 Exercise Instructions This lab is divided into four parts: Part One: Introduction to the Application Server Toolkit Part Two: Testing the deployed Default Application Part Three: Updating an Application using the Administrative Console. Part Four: Introduction to Enhanced Ear. Assumptions: This workshop requires that the following products are installed: - WebSphere Application Server Version 6 (ND) - Application Server Toolkit (AST) The instructions for this exercise assume that the installation is being performed on a machine where the installation directory for WebSphere Application Server is c:\WebSphere\AppServer. If you installed WebSphere Application Server on another drive or directory, you will need to make appropriate allowances when following directions. The AST has been pre-installed on your machine and is ready for use in this exercise
WebSphere software- Copyright IBM Corporation 2005. All rights reserved. PART ONE: Introduction to the Application Server Toolkit (AST) During this part of the exercise you will use the Application Server Toolkit to explore and make changes to a J2EE Enterprise Application. The DefaultApplication, which is one of the sample applications supplied with Web Sphere Application Server, will be used for this exercise. You will use the original Default Application. ear for input to AST, modify the EAR. then save the changes in a separate EAR file. The Default Application consists of a Web Module and an EJB Module. The Web Module contains(3)servlets and several (resource and class)files, while the ejB Modules contains a single Entity Bean that uses Container Managed Persistence. The Entity Bean is bound to the default datasource that uses the Cloudscape database for persistence 1. Launch the Application Server Toolkit a. Use the Windows Start menu to launch the Application Server toolkit. Click Start→ Programs→| BM Web Sphere→ Application Server Toolkit,v6.0÷ Application Server Toolkit Select a workspace BM WebSphere Application Server Toolkit, V6.0 stores your projects in a directory called a workspa Select the workspace directory to use for this session Workspace: E TBMiWebSpherelASTworkspacel Browse Use this as the default and do not ask again OK Cancel b. Accept the default workspace and click OK. oof of Technology ab 03-Application Management Product Introduction Exploration(PI+E Page 3 of 42
© Copyright IBM Corporation 2005. All rights reserved. Proof of Technology Lab 03 – Application Management Product Introduction + Exploration (PI+E) Page 3 of 42 PART ONE: Introduction to the Application Server Toolkit (AST) During this part of the exercise you will use the Application Server Toolkit to explore and make changes to a J2EE Enterprise Application. The DefaultApplication, which is one of the sample applications supplied with WebSphere Application Server, will be used for this exercise. You will use the original DefaultApplication.ear for input to AST, modify the EAR, then save the changes in a separate EAR file. The DefaultApplication consists of a Web Module and an EJB Module. The Web Module contains (3) servlets and several (resource and class) files, while the EJB Modules contains a single Entity Bean that uses Container Managed Persistence. The Entity Bean is bound to the default datasource that uses the Cloudscape database for persistence. ___ 1. Launch the Application Server Toolkit. ___ a. Use the Windows Start menu to launch the Application Server toolkit. Click StartÆProgramsÆIBM WebSphereÆApplication Server Toolkit, V6.0ÆApplication Server Toolkit ___ b. Accept the default workspace and click OK
Copyright IBM Corporation 2005. All rights reserved. 2. Introduction to the ast workbench a. If you are not familiar with the Eclipse workbench, you might want to go through the Overview to get an understanding of the functions and capabilities of the Application Server Toolkit (AST). Otherwise, skip this step and go to the Workbench(step d b. Click on the globe icon to go to the overview a Resource-IBM WebSphere Application Server Toolkit,V6.0 Eile Edit Navigate Search Project Run Window He Welcome to Websphere Application Server Toolkit Version 6.0 c. Follow the links for the ast and workbench basics tutorials ab 03-Application Mar Page 4 of 42
© Copyright IBM Corporation 2005. All rights reserved. Lab 03 – Application Management Page 4 of 42 ___ 2. Introduction to the AST Workbench ___ a. If you are not familiar with the Eclipse workbench, you might want to go through the Overview to get an understanding of the functions and capabilities of the Application Server Toolkit (AST). Otherwise, skip this step and go to the Workbench (step d.) ___ b. Click on the Globe icon to go to the Overview ___ c. Follow the links for the AST and Workbench Basics Tutorials
Copyright IBM Corporation 2005. All rights reserved. d. Click on the Workspace icon on the right hand upper corner of the welcome eResource-IBM WebSphere Application Server Toolkit, v6. 回x1 Fie Eat Navigate Search Project Run window Hep Welcome to Web Sphere Application Server Toolkit Version 6.0 e. The Workbench has perspectives and views. The name of the active perspective is shown in the title of the window In this case. resource should be the active perspective and Navigator is the active view. Using the Workbench window toolbar, you should open a J2EE perspective f. from the ast toolbar, click Window ,Open Perspective Othe Ep Resource-1BM WebSphere Application Server Toolkit, V6.0 File Edit Navigate Search Project Run Heb Open Perspective n Cvs Repository Exploring Show View 4 Profiling and Logging Close Perspective Eu Team synchronizing Close All Perspectives oof of Technology ab 03-Application Management Product Introduction Exploration(PI+E Page 5 of 42
© Copyright IBM Corporation 2005. All rights reserved. Proof of Technology Lab 03 – Application Management Product Introduction + Exploration (PI+E) Page 5 of 42 ___ d. Click on the Workspace icon on the right hand upper corner of the welcome screen ___ e. The Workbench has perspectives and views. The name of the active perspective is shown in the title of the window. In this case, Resource should be the active perspective and Navigator is the active view. . Using the Workbench window toolbar, you should open a J2EE perspective. ___ f. From the AST toolbar, click Window Æ Open Perspective Æ Other