For distributed platforms

Editing the Liberty configuration by using developer tools

You can modify the behavior of Liberty by editing the configuration. For example, you can configure which HTTP ports to use, what features are enabled, and logging and tracing settings.

Before you begin

For a description of the underlying process of configuring a server, and detailed information about specific aspects of server configuration, see Administering Liberty manually.

About this task

The server configuration editor consists of two views: the Source view and the Design view. The Design view is a structured view of the file whereas the Source view is a text view. But both of them are views of the same server configuration file. The Design view has many features that help with the construction of some of the more complex elements in the server configuration such as data sources.

The following steps are demonstrated in the Design view.

Procedure

  1. To open the Server Configuration editor, select any of the following options:
    • In the Servers view, right-click the server configuration and select Open.
    • In the Enterprise Explorer view, expand your server project and the server folder. Right-click the server.xml file and select Open.
    Here is a screen capture of the server configuration editor:
    This is a screen capture of the server configuration editor.
  2. Under the section Configuration Structure, the elements in the configuration are displayed.
  3. Under the Feature Manager section, the details for the currently selected element are displayed. The details can also be modified here.
  4. To add new elements, select Server Configuration under the Configuration Structure section then click Add.
  5. To add child elements, select the parent element under the Configuration Structure section and then click Add.
    This is a screen capture of adding a child element to the server configurations.

    Here is a screen capture of how the configuration structure looks after you add a child element:

    This is a screen capture after you add a child element to the server configurations.

  6. You can remove or move elements by selecting the element and using the Remove, Up, and Down buttons.

What to do next

You can use the key combinations from Table 1 in both the Source view and the Design view.

Table 1. Keyboard shortcuts
Key combination Function
Ctrl+Space Content assistance. It displays variables that have the correct type for the current field (int, string, and other code), or ids of the correct type for a reference field.
F3 Hyperlink to variable references and id references.

Icon that indicates the type of topic Task topic



Timestamp icon Last updated: Friday, 16 September 2016
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-dist&topic=t_edit_server_config
File name: t_edit_server_config.html