Oracle JET and Application Container Cloud (with MCS Integration)

Datetime:2016-08-23 02:24:37          Topic: Oracle           Share

I have deployed JET application with Mobile Cloud Service (MCS) integration into Oracle Application Container Cloud service. It works perfectly well, you can try to access it yourself (until my trial cloud account expires on 15th of August) by URL: .

Follow excellent blog article written by Lucas Jellema on details how to deploy JET into Application Container Cloud - Deploying an Oracle JET application to Application Container Cloud and running on Node.js .

First step is to generate empty Node.js application, you can do this from command line (install Node.js and express generator before):

express RSJETNodeJSApp

Navigate into generated application folder and add dependencies using npm:

npm install

Node.js application is created and you could run it by:

npm start

You could test JET app locally with the same command, as soon as you add JET content into Node.js app.

Once you access deployed JET application by URL: . You should get into Home tab, where static chart data is rendered (no integration with MCS yet):

I did a test to check how same screen looks on mobile device. JET renders perfectly, template is adjusted, as well as chart itself:

Go to People tab, this is where integration with MCS is done. I have implemented oAuth security authentication in JET, against MCS service (I will describe it in the next post). You can login with redsam/Wel_come1 user:

Same login screeen is rendered on mobile device nicely:

Once login is successful, JET app executes REST call to MCS endpoint and fetches data (originally returned by ADF BC REST service deployed on Java Cloud and accessed by MCS Connector):

Mobile device view doesn't dissapoint again, same page UI looks great:

JET implementation code is copied into Node.js structure public folder. You can open app in NetBeans, this would simplify editing:

I have deployed this app to Application Container Cloud by creating zip archive (make sure to create manifest.json file). Don't include root folder into archive, include application folders/files directly. Deployment is straightforward, create new Node.js application in Application Container Cloud:

Upload archive, give application name and wait few minutes to initialize. All done:

Here you can download complete example of Node.js app with JET content (and all libraries) I was using to deploy to Application Container Cloud -


About List