Switching REST Services When Publishing a Visual Builder App by Shay Shmeltzer


Most organizations use separate servers for development vs. production. While developing your Visual Builder application you’ll be accessing REST Services from the development server, but when you are preparing to go production you will likely want to switch the app to use the production version of the services. In the demo below I show you how to automate such a switch using build jobs in Oracle Developer Cloud as part of your continuous delivery process.

(If you aren’t already, you should first get familiar with how to integrate Visual Builder with the Git repository in developer cloud, and how to use Developer Cloud to automate the CI/CD of a VB app).

The process is quite simple:

We are hosting the code for our application in a private Git repository in Developer Cloud. The code for our application includes service.json files for each of the REST services we are consuming in our app.

We can use a build job to take the code from the Git repository and stage or publish our app on any Visual Builder server. If we want to switch the REST service that we are accessing when we stage & publish, then we need to inject one more step into our build job – this step will modify the service.json file we got from the Git repository and will replace the service connection in the file before we execute the grunt tasks to stage/publish on our production instance. Read the complete article here.

Developer Partner Community

For regular information become a member in the Developer Partner Community please register here.

clip_image003 Blog clip_image005 Twitter clip_image004 LinkedIn image[7][2][2][2] Facebook image Meetups

Technorati Tags: PaaS,Cloud,Middleware Update,WebLogic, WebLogic


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.