You can use the Servers view in the OpenEdge Server perspective to create a PAS for OpenEdge instance and publish the WebApp Modules and ABL Services to PAS for OpenEdge. The modules of OpenEdge projects with the selected ABL AppServer facets, ABL services of the REST, WebHandler, or the REST RPC, types are deployed on the ABL application publish directory of the selected PAS for OpenEdge.

To add the WebApp Mdules and ABL Services, right-click on the server and select Add and Remove. From the available list of WebApp Modules and ABL Services, select the ones to add and click Add and click Finish. To publish the business logic, right-click on the PAS for OpenEdge instance and select Publish.

Note: If the Automatically publish when resources change (default) option is selected for the PAS for OpenEdge instance, the server automatically tries to publish the changes after the specified publishing interval (which, by default, is set to 15 seconds).You can change this value using the Publishing interval control in the Server Editor, which is displayed by double-clicking the server. For more information on changing the publishing settings, see PAS for OpenEdge server editor.

Alternatively, you can select If server is started, publish the changes automatically, checkbox on the Add and Remove window to publish the WebApp Mdules and ABL Services..

The ABL services are deployed using PASOEContent to build .WAR files. A single .WAR file is created for all Data Object and REST services in a project and gets deployed on basis of the project, for example if a project has ten services and a single .WAR file with the project name containing all the services gets deployed. If the project .WAR file exists, the services are published incrementally or else the entire .WAR file is published.

To publish an ABL Service:

  1. In the Servers view, right-click a PAS for OpenEdge instance that you want the ABL Service to be deployed to, and select Add and Remove. The Add and Remove page opens.
  2. Select an ABL AppServer content module and ABL Services of REST, or WebHandler, REST RPC type from the Available section, and click Add to move it to the Configured section.
  3. Click Finish. The web application is published as <WebAppName>.war to the webapps folder of the selected PAS for OpenEdge instance. It is published to the default ROOT web application depending on what you have set in the project properties page.
    The openedge.properties file in the <PAS Instance>/conf path is updated with the following entry under the webApps' WEB section:
    handler1=OpenEdge.Web.DataObject.DataObjectHandler: /pdo/ 

    DataObjectHandler is the new OpenEdge.Web.DataObject.DataObjectHandler available in the existing OpenEdge.Net.pl library in both source and r-code forms. This handler uses the above generated <service>.gen file, and translates a HTTP request into a call to a business entity.

    If you undeploy a WebSpeed based Data Object service, the <service>.json and <service>.gen files are removed from the server.

    If want to publish already associated module/service(s), do one of the following to publish:
    • Select Publish from the context menu
    • Select the Publish to the server icon on the Servers view toolbar

    If all assigned or added modules on server are published successfully, then the Servers view displays the status of the server as Started, Synchronized, and the status of the server modules as Synchronized, Published.

    Note:

    If ABL AppServer modules are published to PAS for OpenEdge, the artifacts get deployed on the ABL application publish directory of the selected PAS for OpenEdge.

    When REST services are published to PAS for OpenEdge, <service>.paar files are deployed to the server. When REST based Data Object Services are published, <service>.paar and <service>.json files are deployed to the server.

    You can change the publish directory by changing the value in the Publish directory field in the Server launch configuration wizard startup tab, the default location is <PAS Instance>/openedge.