Publishing J2EE enterprise application projects to a J2EE publishing server

The J2EE publishing server supports the publishing of J2EE enterprise application (EAR) projects, web projects, and enterprise bean (EJB) projects. In previous versions of the workbench, the J2EE publishing server does not support static web projects.

Before you begin

  1. Create either an EAR project, web project or EJB project.
  2. Create a server, selecting J2EE publishing server as the server type.
  3. Add the project to the server .

About this task

To edit the J2EE publishing server configuration:

Procedure

  1. In the Servers view, open the server editor by double-clicking your J2EE publishing server.
  2. You can edit the following settings:
    • HTTP port number  The default HTTP port number is set to 80. Change the HTTP port number by selecting the field.
  3. In the Publishing settings table, the Project Name column lists the name of projects that are associated with the server. You can edit the following columns after you have added projects to the server:
    • Document Root Relative URL The relative path to the project off the server root after publishing. For example if the Document Root Relative URL is /projects/myProject, then the project will be published to document_root/projects/myProject
    • Alias The Alias is an alternative name used to specify a server relative URL.
  4. Save your changes.
  5. To publish using the J2EE publishing server, in the Servers view, select the J2EE publishing server that you want to publish.
  6. On the Servers view toolbar, click Publish to the serverImage of Publish toolbar icon, or right-click the server and select Publish.

Feedback