Steps to perform an Ear file deployment

Steve Taylor provides tips on setting up and Ear file deployment

I am often asked how to standardize a ear file deployment around a WebSphere Cluster.  Deploying an ear file to a cluster can present challenges, particularly when attempting to accomplish the task with one-off deployment scripts written in any number of scripting languages.  In this example, I am using the defined logic with our Release Engineer Continuous Deploy solution, designed to standardize the application release automation process.  This logic can be called by any external process such as a Jenkins continuous integration workflow, or CloudBees Continuous Delivery pipeline process.

Whatever you may be using to orchestrate the calling of your deployment does not matter much. What matters is the ability to create a reproducible ear file deployment that all team members, from development to operations, can understand and track.

Here are the steps I use to deploy an Application to a Websphere Cluster.

  1. Get a list the Servers that belong to the Cluster
  2. Loop through the list of Servers in the Cluster
    1. Stop the App on each server
  3. Remove the App
  4. Install the App
  5. Apply warClassLoaderPolicy updates
  6. Apply classLoader updates
  7. Apply startingWeight
  8. Loop through the list of Servers in the Cluster and apply the following if changed
    1. Stop the Server
    2. Apply genericJvmArguments
    3. Apply initialHeapSize
    4. Apply maximumHeapSize
    5. Apply customProperty
    6. Apply websphereVariables
    7. Start the Server
  9. Loop through the list of Servers in the Cluster
    1. Start the Server if needed
    2. Start the App on the Server if needed

TIPS:
The stopping and re-starting of the Server is only needed if genericJvmArguments, initialHeapSize, maximumHeapSize, customProperty, websphereVariables values have changed. Otherwise, the servers can be left running saving total deployment time.  If you are using Jenkins, our plug-in can be downloaded from RE Jenkins Plugin – https://github.com/OpenMake-Software/ReleaseEngineer/releases/download/7.5.1/release-engineer.hpi

Make sure to check if something is stopped or started prior to stopping or starting it, this will prevent errors from being thrown.  Of course you can do similar processing for a War file.  Below is an example of the workflow logic in a Release Engineer graphical representation.

 

application release automation for war or ear file deployment

War file deployment workflow


Steve Taylor

CITA OpenMake Software

0 thoughts on “Ear file deployment to Websphere Cluster”

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts

DevOps

Build Environment Variables

Build Environment Variables and how to manage the details Build Environment Variables are part of the build process Build Environment Variables are critical, detailed pieces of the over build process. If you are using OpenMake Read more...

DevOps

OpenMake in The Silicon Review

Silicon Review names OpenMake Software in top 20 OpenMake Software recognized in Silicon Review Check out an interview with Steve Taylor, CTO OpenMake Software in the Silicon Review, December 22nd, 2015 See Full Article. OpenMake Read more...

DevOps

Release Packaging for Release Management

Release Packaging to Improve Software Deployments Release Packaging a requirement for Release Management Release packaging for release management is done in a graphical method with Release Engineer.  Other solutions uses a hard-coded manifest file that Read more...