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.
- Select any of the following options:
- In the Servers view (), right-click and select .
- In the menu bar, click File > New > Other.
Expand the Server folder, select Server and
click Next.
- The New Server wizard opens. This wizard defines
a new server, that contains information required to point to a specific
runtime environment for local or remote testing, or for publishing
to an application server.
- In the Select the server type list,
select the type of server or test environment where you want to publish
or test your resources.
- (Optional) 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 JEE 5 specification level.
- 1.2
- Filters the list of available servers that supports J2EE 1.2 specification
level or any servers that may have a version-level of 1.2.
- There is a brief description about the server selected
from the server type list.
- In the Server's host name field,
you can provide the fully qualified DNS name or IP address of the
host machine that where the server is running. By default, this field
is pre-filled with the default address: localhost.
- (Optional) In the Server name field,
type a label to identify this server entry in the Servers view.
By default, this field is completed with the following naming
convention: server type at host name, for example Tomcat
v6.0 Server at localhost.
- 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 (). In the Server runtime environment list,
select the runtime environment of an application server for compiling,
testing, or running your application. To modify the server runtime
environment, select the Configure runtime environments link.
To add a new server runtime environment, select the Add link.
For more details about runtime environments, see the Defining the
server runtime environments preferences link at the bottom of
this topic.
If the Server runtime environment list
is not available, continue to the next page of the New Server wizard
where it is going to prompt you for the installation directory of
the server. After you complete this New Server wizard, the workbench
automatically adds a runtime environment entry in the Runtime Environments
preference page.
- Click Next and follow
the instructions in the wizard to specify the details of the server
that you want to create. See the links at the end of this
topic, as there might be documentation available when continuing through
this wizard for creating the server you have selected in the server
type list.
- After completing the New Server wizard, by click Finish,
the new server appears in the Servers view.