Over a million developers have joined DZone.

App Dev in the Cloud: How to Run JBoss BRMS in a Container

DZone's Guide to

App Dev in the Cloud: How to Run JBoss BRMS in a Container

In this post, we take a look at how to run JBoss BRMS in a container to be used in the cloud, be it your own private cloud or another cloud solution.

· Cloud Zone ·
Free Resource

Download Microservices for Java Developers: A hands-on introduction to frameworks and containers. Brought to you in partnership with Red Hat.

I have a series of articles where I explore with you the reasons why application developers can't ignore their stacks anymore, which refers to the cloud-based infrastructures they working in their daily jobs. This led to my explorations of the possibility to create that cloud-based infrastructure locally as a substitution for the full-blown Red Hat Cloud Suite experience.

What would be nice, I thought, was to have some form of local private cloud that was just the same as what you are experiencing at work where full data centers are used to host an organizations Cloud experience.

This led first to an example project that installs Red Hat OpenShift Enterprise (OSE) as an image through the Red Hat Container Development Kit (CDK).

Next, I gave you the JBoss BRMS installation example for use on OSE. This was a perfectly fine way to work, but the ultimate goal is of course to keep up with the latest products that Red Hat provides.

With that in mind, I went off looking for a way to provide you with Red Hat OpenShift Container Platform (OCP), in the same easy to use demo format. The results of that project was presented in a previous article, but that is not the end of this story.

Containerize JBoss Business Rules Management System (BRMS)

Once you have installed OpenShift on your machine, either the Red Hat CDK or OCP, then the next step is to start exploring your application development options with Red Hat JBoss middleware products.

This section will take you through another simple to install example project that gives you a fully operational, fresh out of the box installation of JBoss BRMS. Not only that, it will be a containerized installation that is created on your OpenShift installation!
  1. First, ensure you have an OpenShift container based installation, such as one of the following installed first:
  2. OCP Install Demo
  3. CDK Install Demo
  4. Or your own OpenShift installation.
                              Watch the container building live on OpenShift Container Platform.
  5. Add products to the installs directory.
  6. 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  # example for OCP.

   $ ./init.sh        # example for CDK.

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

  • OCP example: http://rhcs-brms-install-demo. ( u:erics / p:jbossbrms1! )
  • CDK example: http://rhcs-brms-install-demo. ( u:erics / p:jbossbrms1! )

The pod shown is your JBoss BRMS container on OpenShift Container Platform.

Be sure to give the container time to not only start up, but to start up JBoss EAP with JBoss BRMS. You can check this by finding the deployed pod in the OpenShift console and looking into the logs tab.

That's it, you are now able to start developing business logic and events at your leisure.

Stay tuned for more by watching for updates here or following the projects at Red Hat Demo Central

Download Building Reactive Microservices in Java: Asynchronous and Event-Based Application Design. Brought to you in partnership with Red Hat

container ,jboss brms ,openshift ,cloud ,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 }}