Try OpenEdge Now
skip to main content
Web Services
Creating OpenEdge REST Web Services : REST Applications : Manually Adding Additional Services to a REST Application
 

Manually Adding Additional Services to a REST Application

When you create an OpenEdge REST application using Progress Developers Studio, you generate one or more PAAR (AppName.paar) files that contain service definitions for your Web application. These PAAR files are included when a OpenEdge REST application is deployed.
You can add additional service definitions to a deployed Web application by manually copying a PAAR file to the Java Servlet Container on the Web server where the application is running:
1. In Progress Developers Studio, generate an AppName.paar file. The URIs in the PAAR file cannot match any entries in the PAAR files that are already deployed.
2. In the deployed application on the Web server, add the folder AppName to the directory /WEB-INF/adapters/, where AppName is identical to the root name of the PAAR file.
3. Copy AppName.paar to /WEB-INF/adapters/AppName.
4. Edit /WEB-INF/web.xml in your deployed application to add the new PAAR file to the context parameter archiveFiles. This parameter contains a comma separated list of archive files for example:
<context-param>
  <param-name>archiveFiles</param-name>
 <param-value>CustomerSvc.paar,OrderSvc.paar, AppName.paar</param-value>
</context-param>
5. Restart the Java Servlet Container on the Web server. If there is no conflict with the URI spaces defined in other PAAR files, the additional services will be available in your application.