Exforsys

WebSphere Tutorials

  1. WebSphere V5.0 : Building Expressions
  2. WebSphere V5.0 : Creating SQL statements
  3. WebSphere V5.0 : Applying DDL scripts to a remote database
  4. WebSphere V5.0 : Deploying to the database
  5. WebSphere V5.0 : Defining a table
  6. WebSphere V5.0 : Defining a database
  7. Working with Data in WebSphere
  8. WebSphere V5.0 : Debugging - JSP debugging
  9. WebSphere V5.0 : Debugging - Scrapbook Page
  10. WebSphere V5.0 : Debugging - View variables
  11. WebSphere V5.0 : Debugging - Step-through code
  12. WebSphere V5.0 : Debugging - Set breakpoints
  13. WebSphere V5.0 : Running Applications - Export J2EE applications
  14. WebSphere V5.0 : Running Applications - Run/operate server
  15. WebSphere V5.0 : Running Applications - Understand Session Manager
  16. WebSphere V5.0 : Running Applications - Configure data sources
  17. WebSphere V5.0 : Running Applications - Create server instance and server configuration
  18. WebSphere V5.0 : Web Development - Use Web Page Wizards
  19. WebSphere V5.0 : Web Development - Work with Web Application Deployment Descriptor
  20. WebSphere V5.0 : Web Development - Use content assist
  21. WebSphere V5.0 : Web Development - Use Page Designer to add and modify HTML and JSP content
  22. WebSphere V5.0 : Web Development - Understand classpath and module dependencies
  23. WebSphere V5.0 : Web Development - Create resources in appropriate J2EE locations
  24. WebSphere V5.0 : Web Development - Create a web project
  25. WebSphere V5.0 : Java Development - Use property dialogues
  26. WebSphere V5.0 : Java Development - Use hierarchy view
  27. WebSphere V5.0 : Java Development - Use task view
  28. WebSphere V5.0 : Java Development - Use search function
  29. WebSphere V5.0 : Java Development - Use content assist function and declarations
  30. WebSphere V5.0 : Java Development - Use refactoring features
  31. WebSphere V5.0 : Java Development - Use Outline View and Browsing View
  32. WebSphere V5.0 : Java Development - Create Java project, packages, classes, methods
  33. WebSphere V5.0 : Workbench Basics - Use the Help feature to aid in development activities
  34. WebSphere V5.0 : Workbench Basics - Import to and export from the workbench
  35. WebSphere V5.0 : Workbench Basics - Work with Perspectives
  36. WebSphere V5.0 : Workbench Basics - Set workbench preferences
  37. WebSphere V5.0 : Workbench Basics - Create J2EE projects

Ads


Home arrow Reviews arrow WebSphere Tutorials

WebSphere V5.0 : Running Applications - Run/operate server

Author : Exforsys Inc.     Published on: 24th May 2006

WebSphere V5.0 : Running Applications - Run/operate server

In this tutorial you will learn about WebSphere V5.0 : Running Applications - Run/operate server, Adding projects to a server, Starting a server, Servers view and Server Configuration view.

Ads

Adding projects to a server

Once you have created a server and server configuration, you need to create a relationship between the projects that contain the files you want to test and your server.

This is done by adding your project to a server:

  1. In the Server Configuration view, expand Servers.
  2. Right-click on the appropriate server, and select Add:

Add

3. Select the project that you want to test with the server. You can only select one project at a time. The project name appears under the server in the Server Configuration view:

Server Configuration

NOTE: When you select a project to add to the server configuration, only the projects that are applicable to the type of server will appear. For example, for WebSphere Application Server V5, only EAR projects and projects associated with an EAR, can be added to the Server Configuration.

Starting a server

When you are ready to test your projects, you must start a server. In some situations, listed below, WebSphere Studio starts a server for you automatically.

Once you have started the server you can test the projects that are associated with its configuration. You can stop and restart the server at any time. The status of the server is displayed in the Status column of the Servers view.

To manually start a server:

  1. Switch to the Server perspective.
  2. In the Servers view, right-click the server you want to start.
  3. Select Start.

Start

The following things happen:

If you have selected the Automatically publish before starting servers check box on the Server preferences page (Window > Preferences > Server), WebSphere Studio checks to see if your project and files on the remote server are synchronized prior to starting the server. If they are not, the project and the files are automatically updated on the remote server when it is started.

A Console view opens in the workbench. It will take a minute to start the server. If the server fails to start, check for the reason that it failed in the Console.

In the Status column of the Servers view, the status of the server changes to Started.

Started

Tip: You can also start the server by right-clicking the server in the Server Configuration view and then clicking on the Control > Start context menu item:

Start

Tip: You can also start the server by selecting the server in the Servers view and then clicking on the Start the server button on the main toolbar:

Start the server

Tip: The server is automatically started when you right-click on a file and then select Run on Server:

Run on server

After the server is started, the file (JSP or Servlet) is opened in Web Browser automatically:

Resource

Servers view

The Servers view (similar to the one shown below) allows you to manage the servers and configurations. This view displays a list of all your servers and configurations that are associated with that server. You can use this view to start, start in debug mode, restart, or stop the servers.

Servers

Use the Servers view to perform the following tasks:

Servers view Tasks

  • Create a server and configuration
  • Edit a server
  • Delete a server
  • Start a server
  • Start a server in debug mode
  • Start a server in profiling mode
  • Restart a server
  • Stop a server
  • Disconnect from a server
  • Publish your application
  • Add and remove projects from a server
  • Switch configuration
  • Restart a project
  • Show Activity Log
  • Create tables and data sources

The Servers view displays the current status of all the servers. The server status indicates whether or not a server has been started. The following lists the possible server status:

  • Starting
  • Started
  • Started in debug mode
  • Started in profile mode
  • Stopping
  • Stopped

The Servers view also displays the current state of all the servers. Depending on the status of the server and the preference options that are selected for that particular server, the server tools determine the server actions that may be taken. Use this column as an indicator for possible actions that you may want to take. For example, if the server tools detect that a file defined to run on a particular server has changed, and the Automatically restart servers when necessary check box has been selected on the Server preferences page (Window > Preferences > Server), the server tools automatically restart that server. The Status column in the Server Control view changes from Started to Stopped, from Stopped to Started. However, if this check box is not selected, the Server State column in the Servers view changes to The server should be republished.

Server Configuration view

The Server Configuration view (similar to the one shown below) allows you to manage the servers and configurations. This view displays a list of all the servers that reside in your workspace (without displaying their associated server projects).

Server Configuration view

To view the server configurations, click the Menu icon and select View > Advanced. The advanced Server Configuration view opens, displaying the servers and their associated configurations.

Server Configuration view

Use the Server Configuration view to perform the following tasks:

Server Configuration view

Ads

  • Create a server and configuration
  • Edit a server
  • Delete a server
  • Start a server
  • Start a server in debug mode
  • Start a server in profiling mode
  • Restart a server
  • Stop a server
  • Publish your application
  • Switch configuration
  • Add and remove projects


_________________

Author: Mikalai Zaikin. Please Click Here to visit Authors site for any updates and changes to the study notes.



 
This tutorial is part of a WebSphere Tutorials tutorial series. Read it from the beginning and learn yourself.

WebSphere Tutorials

  1. WebSphere V5.0 : Building Expressions
  2. WebSphere V5.0 : Creating SQL statements
  3. WebSphere V5.0 : Applying DDL scripts to a remote database
  4. WebSphere V5.0 : Deploying to the database
  5. WebSphere V5.0 : Defining a table
  6. WebSphere V5.0 : Defining a database
  7. Working with Data in WebSphere
  8. WebSphere V5.0 : Debugging - JSP debugging
  9. WebSphere V5.0 : Debugging - Scrapbook Page
  10. WebSphere V5.0 : Debugging - View variables
  11. WebSphere V5.0 : Debugging - Step-through code
  12. WebSphere V5.0 : Debugging - Set breakpoints
  13. WebSphere V5.0 : Running Applications - Export J2EE applications
  14. WebSphere V5.0 : Running Applications - Run/operate server
  15. WebSphere V5.0 : Running Applications - Understand Session Manager
  16. WebSphere V5.0 : Running Applications - Configure data sources
  17. WebSphere V5.0 : Running Applications - Create server instance and server configuration
  18. WebSphere V5.0 : Web Development - Use Web Page Wizards
  19. WebSphere V5.0 : Web Development - Work with Web Application Deployment Descriptor
  20. WebSphere V5.0 : Web Development - Use content assist
  21. WebSphere V5.0 : Web Development - Use Page Designer to add and modify HTML and JSP content
  22. WebSphere V5.0 : Web Development - Understand classpath and module dependencies
  23. WebSphere V5.0 : Web Development - Create resources in appropriate J2EE locations
  24. WebSphere V5.0 : Web Development - Create a web project
  25. WebSphere V5.0 : Java Development - Use property dialogues
  26. WebSphere V5.0 : Java Development - Use hierarchy view
  27. WebSphere V5.0 : Java Development - Use task view
  28. WebSphere V5.0 : Java Development - Use search function
  29. WebSphere V5.0 : Java Development - Use content assist function and declarations
  30. WebSphere V5.0 : Java Development - Use refactoring features
  31. WebSphere V5.0 : Java Development - Use Outline View and Browsing View
  32. WebSphere V5.0 : Java Development - Create Java project, packages, classes, methods
  33. WebSphere V5.0 : Workbench Basics - Use the Help feature to aid in development activities
  34. WebSphere V5.0 : Workbench Basics - Import to and export from the workbench
  35. WebSphere V5.0 : Workbench Basics - Work with Perspectives
  36. WebSphere V5.0 : Workbench Basics - Set workbench preferences
  37. WebSphere V5.0 : Workbench Basics - Create J2EE projects
 

Comments