Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

10 Steps to Cloud Happiness (Step 4): Centralize Business Logic

DZone's Guide to

10 Steps to Cloud Happiness (Step 4): Centralize Business Logic

As you continue your journey into the cloud, let's take a look at centralizing business logic with tools like JBoss BRMS, OpenShift, and Ansible.

· Cloud Zone ·
Free Resource

Site24x7 - Full stack It Infrastructure Monitoring from the cloud. Sign up for free trial.

Every journey starts at the beginning and this journey's no exception.

As previously presented in the introduction to this series of articles, you'll be taken through the 10 steps to your cloud happiness.

This journey focuses on the storyline that you're interested in due to the push towards a digital transformation and the need to deliver applications into a cloud service.

This focus on application delivery and all the new moving parts, like containers, cloud, platform as a service (PaaS), and digital journeys might leave you searching for that simple plan to get started. There is nothing like getting hands-on to quickly leverage the experience you've acquired over the years, so let's dive right in.

Previously, you were shown how to get a cloud, the use of a service catalog, and how to add cloud operations functionality, so what's next?

Business Logic

Ever since the first day we started coding an application, it's included some form of business logic. It's often not obvious, but think back to the if-then-else constructs used to frame choices in your applications execution paths. That, my friends, was business logic.

While there's nothing wrong with coding that kind of logic into an application, when deploying and managing hundreds if not thousands of applications there's a real need to centralize your business logic.

In the world of open technologies, JBoss Business Rules Management System (BRMS) makes centralizing your business logic available to all using open standards and open source models. The easiest way to get started is with this container deployment of JBoss BRMS. Below are the instructions that include installing OCP as outlined in step one of this series called, Get a Cloud.

Image title

Open technology for business logic in container deployment model.

Install JBoss BRMS on OpenShift

  1. First ensure you have an OpenShift container based installation, such as one of the following installed first:
    1. OCP Install Demo
    2. or your own OpenShift installation.
  2. Download and unzip this demo.
  3. Download JBoss EAP and JBoss BRMS, add to installs directory (see installs/README).
  4. Run 'init.sh' or 'init.bat' file. 'init.bat' must be run with Administrative privileges:
   # The installation needs to be pointed to a running version
   # of OpenShift, so pass an IP address such as:
   #
   $ ./init.sh 192.168.99.100  # example for OCP.


Now log into JBoss BRMS and start developing a containerized rules projects (the address will be generated by the init script).

  • OCP example: http://rhcs-brms-install-demo-appdev-in-cloud.192.168.99.100.nip.io/business-central (u:erics / p:jbossbrms1!)
  1. Not sure how to get started with JBoss BRMS? Try one of these online workshops to build your first project from scratch.

After deployment, if you start to build your business logic out but still need some pointers, there are online workshops that can help you build out a few projects to get a feel for the use of a JBoss BRMS system.

Finally, you might be looking for ways to automate your rules deployments, such as using Ansible to extract your business logic from a completed project in a container and deploy it as an apart xPaaS container service for all your applications to leverage. 

Rest of the Story

If you are looking for the introduction to this series or any of the other steps:

  1. Get a Cloud
  2. Use a Service Catalog
  3. Adding Cloud Operations
  4. Centralize Business Logic
  5. Real Process Improvement
  6. Human Aspect
  7. Retail Web Shop
  8. Online Travel Bookings
  9. Financial Services Examples
  10. Agile Cloud Service Integration

So stay tuned as this list is tackled one-by-one over the coming weeks and months to provide you with a clear direction towards your very own application delivery in the cloud happiness.

Site24x7 - Full stack It Infrastructure Monitoring from the cloud. Sign up for free trial.

Topics:
cloud ,business logic ,cloud deployment ,openshift ,tutorial

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}