opyright IBM Corporation 2005. All rights reserved. g. Select the J2EE perspective from the available options 中5 elect Perspective cvsicVS Repository Exploring Data *Debug Log Adapter 时 ya Browsing JAva Type Hierarch w Plug-in Developmen 3. Create the Enterprise Application Project a. From the AsT toolbar, click File,Import File Edit Navigate Search Project Run Window Help +分+N中势·o.9,0,。一 Corl+s save A Save A H+5+5 Refresh Switch Workspace. ben External File. tn Import. b. The Import window is displayed, with several import source options c. Click Ear F click Next. The Enterprise Application Import dialogue is displayed ab 03-Application Management 6of42
© Copyright IBM Corporation 2005. All rights reserved. Lab 03 – Application Management Page 6 of 42 ___ g. Select the J2EE perspective from the available options. ___ 3. Create the Enterprise Application Project ___ a. From the AST toolbar, click File Æ Import ___ b. The Import window is displayed, with several import source options ___ c. Click Ear File. ___ d. Click Next. The Enterprise Application Import dialogue is displayed
Copyright IBM Corporation 2005. All rights reserved. e. Click the browse button for ear File Enterprise Application Import Import an Enterprise Application project based on selected resources f. Navigate to C: IWeb Sphere\App Server\InstallableApps g. Click DefaultApplicationear h. Click the Open button Look int installable Apps a]sibwsimschannell 此 Application. ear Da] sibwsimschannel2ea a DynacacheEs ef aivtApp Type: EAR File fphereTP, ear a]PerfServletApp Size: 123 KB Dekp|圆 query,ear a]sdoRepository,ear My Documents]sibwsauthbean,ear asibwshtt a]sibwshttpchannel2 My Computer File name DefaultApplication My Network P Files of . The Enterprise Application Import dialogue window is redisplayed with values filled in for the Default Application J2EE Application j. Click Finish You have just created the DefaultApplication Enterprise Application project. It consists of J2EE application components, resources, and deployment information The Project Explorer panel should now look similar to the following image oof of Technology Lab 03-Application Management Page 7 of 42
© Copyright IBM Corporation 2005. All rights reserved. Proof of Technology Lab 03 – Application Management Product Introduction + Exploration (PI+E) Page 7 of 42 ___ e. Click the Browse button for Ear File. ___ f. Navigate to C:\WebSphere\AppServer\InstallableApps ___ g. Click DefaultApplication.ear ___ h. Click the Open button ___ i. The Enterprise Application Import dialogue window is redisplayed with values filled in for the DefaultApplication J2EE Application. ___ j. Click Finish. You have just created the DefaultApplication Enterprise Application project. It consists of J2EE application components, resources, and deployment information. The Project Explorer panel should now look similar to the following image:
Copyright IBM Corporation 2005. All rights reserved. J2EE-IBM Websphere Application Server Toolkit, Y6.0 File Edt Navigate Search Project Run Window Help ( e Enterprise Applications 中 Application Client Projects 由 C Connector Proje 中 CS EJB Project 中 C Dynamic Web Projects Other Projects #-Co Databases e servers An Enterprise Application may consist of EJB Modules, Web Modules, a Resource Adapter, Application Clients, Security Roles, Files, and Deployment Descriptors. The Default Application consists of Deployment Descriptor information, a Web Module (DefaultWebApplication) and an EJB module(Increment) 4. Introduction to the Application Deployment Descriptor a. Access the Project Explorer Pane File Edit Navigate Search Project Run Window Help e。s」·0·8·,s少」 H. Resource 日- Default Appia Edi Deployment Descriptor: Default Application.ear>> 中-□ Modules O Project Utilty JARs 中□ Utility JARs +C META-INF t-C Application Client Projects b. Expand Enterprise Applications Default Application C. Double click the Deployment Descriptor DefaultApplication ear entry, to open the deployment descriptor in the Deployment Descriptor Editor ab03-Applicat tion Management
© Copyright IBM Corporation 2005. All rights reserved. Lab 03 – Application Management Page 8 of 42 An Enterprise Application may consist of EJB Modules, Web Modules, a Resource Adapter, Application Clients, Security Roles, Files, and Deployment Descriptors. The DefaultApplication consists of Deployment Descriptor information, a Web Module (DefaultWebApplication) and an EJB module (Increment). ___ 4. Introduction to the Application Deployment Descriptor ___ a. Access the Project Explorer Pane. ___ b. Expand Enterprise Applications Æ Default Application ___ c. Double click the Deployment Descriptor: DefaultApplication.ear entry, to open the deployment descriptor in the Deployment Descriptor Editor
WebSphere software- Copyright IBM Corporation 2005. All rights reserved. You can use the Deployment Descriptor Editor to change certain deployment properties of the Enterprise Application. For instance, you can add modules and security information, as well as change Web Sphere bindings and extensions information d. Press the F1 key to display help information on the Deployment Descriptor Editor e. Click the Link for Application deployment descriptor editor Use the Overview page of the Application deployment descriptor editor to view and set properties for the enterprise application k也m时 D Creating an enterprise application project f. Review the help information for the Editor g. Close the Help Window The DefaultApplication EAR Deployment Descriptor file is displayed in the editor h. Click the Overview tab to ensure that the Overview page is active in the editor ication Server Toolkit, V6.0 ie Edit Navigate Search Project Run Window Heb 图G丽“丽」赖·0·9·%,」 =d Deployment Descriptor: DefaultApp -General Information Edweb Defaul:WebApplcation,war Description:This is the IBM WebSphere Application Server Defaul -J Security Roles 4 t-C Appication Client Projects Detals iCons Smal: 由与 Dynamic Web Projects C-CO Databases tCo Database Servers owing are extension properties for the Websphere Appication Server Read nterval second(s) Securty Extended Services Deployment Source I: Description Resource Folder Location oof of Technology Lab 03-Application Management Product Introduction Exploration(PI+E Page 9 of 42
© Copyright IBM Corporation 2005. All rights reserved. Proof of Technology Lab 03 – Application Management Product Introduction + Exploration (PI+E) Page 9 of 42 You can use the Deployment Descriptor Editor to change certain deployment properties of the Enterprise Application. For instance, you can add modules and security information, as well as change WebSphere bindings and extensions information. ___ d. Press the F1 key to display help information on the Deployment Descriptor Editor. ___ e. Click the Link for Application deployment descriptor editor ___ f. Review the help information for the Editor ___ g. Close the Help Window The DefaultApplication EAR Deployment Descriptor file is displayed in the editor. ___ h. Click the Overview tab to ensure that the Overview page is active in the editor
Copyright IBM Corporation 2005. All rights reserved. i. Observe that the DefaultApplication contains two(2) modules Web DefaultWebApplication. war and ejB Increment jar j. Click the Details button next to the Modules. This action will make the Module page active in the editor. You can use the Module page to add, edit, browse, and emove EJB, Web, Application, etc. modules from the enterprise application. You can also use this page to add utility JAR files to the Enterprise Application project k. Click the Web DefaultWebApplication war module Observe the context root for the Default Application is'/ Note: A context root is the default relative path to static Web content. It is used to create the URL that links to Web resources in a static Web project. In order to change the Context root, you will need to use the Properties sheet for the DefaultWebApplication The capability to change the Context root will be demonstrated in a subsequent section of this exercise m. Close the Application Deployment Descriptor editor. If the Save Resource dialogue is displayed, click No 5. Introduction to the Web Deployment Descriptor a. Expand Dynamic Web Projects- DefaultWebApplication b. Double Click Deployment Descriptor: Default Web Application to open the Web Deployment Descriptor Editor ab 03-Application Mar Page 10 of 42
© Copyright IBM Corporation 2005. All rights reserved. Lab 03 – Application Management Page 10 of 42 ___ i. Observe that the DefaultApplication contains two (2) modules: Web DefaultWebApplication.war and EJB Increment.jar. ___ j. Click the Details button next to the Modules. This action will make the Module page active in the editor. You can use the Module page to add, edit, browse, and remove EJB, Web, Application, etc. modules from the enterprise application. You can also use this page to add utility JAR files to the Enterprise Application project. ___ k. Click the Web DefaultWebApplication.war module. ___ l. Observe the context root for the DefaultApplication is ‘/’. Note: A context root is the default relative path to static Web content. It is used to create the URL that links to Web resources in a static Web project. In order to change the Context root, you will need to use the Properties sheet for the DefaultWebApplication. The capability to change the Context root will be demonstrated in a subsequent section of this exercise. ___ m. Close the Application Deployment Descriptor editor. If the Save Resource dialogue is displayed, click No. ___ 5. Introduction to the Web Deployment Descriptor ___ a. Expand Dynamic Web Projects Æ DefaultWebApplication ___ b. Double Click Deployment Descriptor: Default Web Application to open the Web Deployment Descriptor Editor