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

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

MongoDB Atlas is a database as a service that makes it easy to deploy, manage, and scale MongoDB. So you can focus on innovation, not operations. Brought to you in partnership with MongoDB.

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 192.168.99.100  # example for OCP.

   $ ./init.sh 10.1.2.2        # 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.192.168.99.100.xip.io/business-central ( u:erics / p:jbossbrms1! )
  • CDK example: http://rhcs-brms-install-demo.10.1.2.2.xip.io/business-central ( 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

MongoDB Atlas is the best way to run MongoDB on AWS — highly secure by default, highly available, and fully elastic. Get started free. Brought to you in partnership with MongoDB.

Topics:
container ,jboss brms ,openshift ,cloud ,tutorial

Published at DZone with permission of Eric D. Schabell, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

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

{{ parent.tldr }}

{{ parent.urlSource.name }}