Skip to Content
Author's profile photo Greg Malewski

How to setup OData backend hosted with Payara and Olingo on OpenShift (alternative to having SAP Gateway as backend for SAP UI5 / OpenUI5 apps)

Introduction

As OpenUI5 is becoming more popular at large SAP accounts there is a demand to also have the open source version of the backend. This is to have the fully opensource end-to-end UI5 solution. One of the options that are making this possible is the usage of:

  • Payara –  Java Enterprise Edition (Java EE) application server

Together with

  • Olingo library – for handling oData calls

and

  • OpenShift – In order to manage and deploy your Java EE oData services as containers.

Required steps

To set up the open source backend you need to have the server platform. It can be a physical server, local virtual box or virtual private server (VPS). Start with installing OpenShift on your server. Detailed description for Unbuntu 16.04 you will find in OepnShift blog:

Installing OpenShift (for Ubuntu 16.04): https://blog.openshift.com/installing-openshift-3-7-1-30-minutes/

Once OpenShift is installed setup OpenShift project and add Payara template to it:

Add Payara template to your OpenShift project by following Readme from Payara Openshift example: https://github.com/nextstepman/payara-openshift-example

Here is how the correctly added Payara template looks like:

Now using the template created in the previous step (“payara-maven3″) you can create Payara Olingo application. You can either create your own based on Olingo tutorial (http://olingo.apache.org/doc/odata2/tutorials/AnnotationProcessorExtension.html) or use our example repository: https://bitbucket.org/nype/triton-example

Here is the screenshot after our repository import:

Now your oData service is available for consumption with SAP UI5 or OpenUI5 application at: http://triton.YOUR_SERVER/Triton/ODataService.svc

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.