Creating a server

You can create a server to identify the runtime environment that you want to use for testing your project resources. The term creating a server defines creating a pointer from the workbench to an existing installation of an application server.

About this task

Procedure

  1. Select one of the following options:
    • Select Window > Show View > Servers. Right-click New > Server.
    • In the menu bar, click File > New > Other. Expand the Server folder, select Server and click Next.
  2. The New Server wizard opens.
    This wizard defines a new server. The new server contains information that you can use to:
    • Point to a specific runtime environment for local or remote testing.
    • Publish to an application server.
  3. In the Select the server type list, select the type of server or test environment where you want to publish or test your resources.
    1. In the text field under the Select the server type label, you can replace the text type filter text with keywords to filter the list of available application servers.
      The following are examples of filter keywords:
      Apache
      Filters the list of available servers where the vendor is Apache.
      WebSphere
      Filters the list of available servers where the name is WebSphere®.
      ejb
      Filters the list of available servers that support ejb modules.
      web
      Filters the list of available servers that support web modules.
      5.0
      Filters the list of available servers that are at version, 5.0 or supports Java™ Platform, Enterprise Edition 5 specification level.
      1.2
      Filters the list of available servers that supports Java EE 1.2 specification level or any servers that have a version-level of 1.2.
    2. There is a brief description about the server that is selected from the server type list.
  4. In the Server's host name field, you can provide the fully qualified DNS name or IP address of the host machine where the server is running.
    The default address is: localhost.
  5. The Server runtime environment list is available when you select a server from the server type list that contains a runtime environment entry in the Runtime Environments preferences page Window > Preferences > Server > Runtime Environments.
    If the Server runtime environment list is not available, continue to the next page of the New Server wizard. The wizard prompts for the installation directory of the server. After you complete this New Server wizard, the workbench adds a runtime environment entry in the Runtime Environments preference page.
    • To compile, test, or run your application, select the Server runtime environment list. Select the runtime environment of an application server.
    • To modify the server runtime environment, select Configure runtime environments.
    • To add a new server runtime environment, select Add.
    • For more information about runtime environments, see Defining the server runtime environments preferences.
  6. Click Next.
    Follow the instructions in the wizard to specify the details of the server that you want to create.
  7. After completing the New Server wizard, click Finish. You can view the new server in the Servers view.