Targeting the Web Server

See Also

During development and testing, you can execute your web module using the Sun ONE Application Server, the IDE's internal Tomcat installation, or any other server that you have installed. By default, the IDE executes web modules and web module groups using the Server Registry's default web tier application server. If you do not want to use the default server, you can associate a web module or a web module group with a different server by editing its Target Server property.

This topic explains how to change the default server, how to set the target server for a web module, and how to set the target server for a web module group.

To change the default web server:

  1. In the Runtime tab of the Explorer window, expand the Server Registry node, expand the Default Servers node, right-click the Web Tier Applications node to display its contextual menu, and choose Set Default Server.

    The Select Default Web Server dialog box appears.

  2. Choose an installed web server from the list, and click OK to make this server the default web tier application server.

To specify a target server for web module execution:

  1. In the Filesystems tab of the Explorer, right-click the WEB-INF directory for the web module, and choose Properties.
  2. On Execution tab of the WEB-INF property sheet, click the Target Server property to activate the value field, then click the ellipses button to display the Target Server property editor.
  3. In the Target Server property editor, select a server, and click OK to close the property editor.

To specify a target server for a web module group:

  1. In the Filesystems tab of the Explorer, right-click the web module group file, and choose Properties.
  2. On the web module group property sheet, click the Target Server property to activate the value field, then click the ellipses button to display the Target Server property editor.
  3. In the Target Server property editor, select a server, and click OK to close the property editor.

You can set a target server for an individual web module by editing the Target Server property for that web module. However, if a component of that web module is executed while the web module is executing as part of a web module group, then the web module executes within the server specified by the Target Server property for the web module group.

See Also
Executing Web Modules
Creating a Web Module Group

Legal Notices