5) running applications


Published on

  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

5) running applications

  1. 1. Vikas Manoria IT Specialist – IBM Academic Initiative [email_address] Section - 5) Running Applications
  2. 2. Section 5 - Running Applications (9%) <ul><li>Use WebSphere Application Server to run J2EE applications </li></ul><ul><li>Create and configure data sources </li></ul><ul><li>Add and remove projects from the server </li></ul><ul><li>Run stand-alone Java applications </li></ul>
  3. 3. Deploying and Testing in WebSphere V6.1 <ul><li>Deployment, testing, and administration is identical for all V6.1 Servers </li></ul><ul><ul><li>Test environment </li></ul></ul><ul><ul><li>Separate BASE or ND environments </li></ul></ul><ul><li>Configuration through administration console </li></ul>IBM Rational Application Developer WebSphere Application Server V6.1 WebSphere Application Server V6.1 Stand-alone Installation Cell Node WAS 6.1 WAS 6.1 Node Agent Network Deployment (ND) J2EE Enterprise Application Properties Node WAS 6.1 WAS 6.1 Node Agent Deployment Manager Components Components Resources
  4. 4. Creating a New Server (1 of 2) In Rational Application Developer, create a new server in the Servers view. Create a new profile with the Profile Management tool.
  5. 5. Creating a New Server (2 of 2) <ul><li>Select the profile from the drop-down list </li></ul>
  6. 6. Adding Applications to the Server <ul><li>Adding projects to a server creates a relationship between the project and the server </li></ul><ul><ul><li>A project is published after you add the project, you add it using the Add and Remove projects menu item </li></ul></ul><ul><ul><li>Rational Application Developer publishes the application to the server when you start the server from the Servers view </li></ul></ul><ul><ul><li>You can manually publish any projects you have added by selecting the Publish to the server icon in the Servers view toolbar </li></ul></ul>
  7. 7. Considerations for Adding Applications <ul><li>The actual location of application binaries depends on publishing settings: </li></ul><ul><ul><li>Run server with resources within the workspace </li></ul></ul><ul><ul><ul><li>Certain types of changes you make to applications are automatically applied </li></ul></ul></ul><ul><ul><ul><li>A server has orphaned applications if a workspace with applications was deleted </li></ul></ul></ul><ul><ul><li>Run server with resources on server </li></ul></ul><ul><ul><ul><li>Changes to applications must be published in order to take effect </li></ul></ul></ul>
  8. 8. Editing Server Resource Settings (1 of 2) 1 2 3
  9. 9. Editing Server Resource Settings (2 of 2) 1 2 4 3
  10. 10. Controlling Servers in the Servers View <ul><li>With a server selected in the Servers view: </li></ul><ul><ul><li>Start the server in one of three modes </li></ul></ul><ul><ul><ul><li>Start to run applications normally </li></ul></ul></ul><ul><ul><ul><li>Debug to step through application execution </li></ul></ul></ul><ul><ul><ul><li>Profile to monitor application performance </li></ul></ul></ul><ul><li>Console view displays server log and error messages </li></ul><ul><li>Double-click a server to edit its configuration </li></ul>Start server in Debug mode Start server in Profiling mode Start server in Normal mode Restart the server Stop the server Publish projects to server
  11. 11. Examining Server Status <ul><li>The Servers view displays the current status of all the servers. The Status column indicates whether or not a server has been started. The following lists the possible server status: </li></ul>Stopped Started in profile mode Started Stopping Started in debug mode Starting
  12. 12. Web Application Deployment in WebSphere <ul><li>Deployment, Testing, and Administration is identical for all WebSphere v6.1 servers </li></ul><ul><ul><li>Test Environment </li></ul></ul><ul><ul><li>Separate BASE or Network Deployment (ND) Environment </li></ul></ul><ul><li>Applications can also be exported and installed through the Admin console or wsadmin </li></ul><ul><li>The Admin console can be accessed through the server in the Rational Application Developer Servers view </li></ul>
  13. 13. Administrative Console Overview
  14. 14. Administrative Console Navigation Tree <ul><li>Choose an action: </li></ul><ul><ul><li>Help with Activities </li></ul></ul><ul><ul><li>Administer application and Web servers </li></ul></ul><ul><ul><li>Administer and install applications </li></ul></ul><ul><ul><li>Administer resource providers (JDBC, JMS) </li></ul></ul><ul><ul><li>Enable and configure security </li></ul></ul><ul><ul><li>Configure virtual hosts, variables </li></ul></ul><ul><ul><li>Administer the Administration Console </li></ul></ul><ul><ul><li>Administer Users and Groups </li></ul></ul><ul><ul><li>Configure Performance Monitoring </li></ul></ul><ul><ul><li>Configure Logs and Tracing </li></ul></ul><ul><ul><li>Configure SOA elements </li></ul></ul><ul><ul><li>Configure UDDI nodes </li></ul></ul>
  15. 15. Applications: Console Options
  16. 16. Applications: Installation (1 of 2) <ul><li>Specify the application (EAR file) or stand-alone module (JAR or WAR file) to install </li></ul><ul><ul><li>If installing a Web module, specify the context root </li></ul></ul>
  17. 17. Applications: Installation (2 of 2) <ul><li>Remaining steps involve </li></ul><ul><ul><li>Selecting installation options </li></ul></ul><ul><ul><li>Mapping modules to servers </li></ul></ul><ul><ul><li>Mapping virtual hosts for web modules </li></ul></ul><ul><li>Once the application has been installed, you must save the master configuration </li></ul>
  18. 18. Resources: JDBC DataSources <ul><li>In addition to General Properties , you can set Connection pool properties using this form </li></ul>
  19. 19. Guided Activities: Connecting to a Database <ul><li>This guided activity leads you through a set of steps to configure database access for an application using JDBC Datasources. </li></ul>
  20. 20. Checkpoint <ul><li>When is the Rational Agent Controller required to be installed? </li></ul><ul><li>How can you add projects to a server directly from Rational Application Developer? </li></ul><ul><li>How can you remove them? </li></ul><ul><li>The universal test client will not start; what might be the problem? </li></ul><ul><li>How many server profiles can be created? </li></ul><ul><li>What is the purpose of the TCP/IP monitor? </li></ul>
  21. 21. Checkpoint answers <ul><li>For profiling applications. </li></ul><ul><li>Via the Add and Remove Projects dialog, server context menu, or by choosing Run/Debug/Profile on server from the Project Explorer context menu. </li></ul><ul><li>Same as adding, or through the administrative console. Note: Simply deleting the project in the workbench will not remove it from the server. </li></ul><ul><li>In the Server Overview dialog, Enable universal test client might be unchecked. [There are several other answers, of course! This is the one that was given in this unit] </li></ul><ul><li>As many as required. </li></ul><ul><li>To intercepts and relays data on a particular port. </li></ul>
  22. 22. Lab <ul><li>Create Server Instance </li></ul><ul><li>Add/remove projects </li></ul><ul><li>Configure Server </li></ul><ul><li>Start/stop Server </li></ul><ul><li>Server Console </li></ul>
  23. 23. Japanese Hebrew Thank You English Merci French Russian Danke German Grazie Italian Gracias Spanish Obrigado Portuguese Arabic Simplified Chinese Traditional Chinese Thai Korean