Version 2

    OpenShift provides outstanding cloud hosting capabilities for both, development (OpenShift Express) and production sites (OpenShift Flex).

     

    Overview

     

    The OpenShift cloud based hosting supports Java EE 6 thanks to running your application on JBoss AS 7.

     

    For the RichFaces users it means full JSF support.

     

    Additionally, you are getting Git and Maven and Jenkins integration as current development trends.

    In the article we are focusing on these tools but you can use whatever version control and build system you like.

     

     

    Limitations

     

    • Express does provide only limited resources, which is suitable for development, but it is not recommended for hosting production applications
    • both Express and Flex does not support JMS at the time of writing this article.
      • you need to make sure you don't have Push JMS integration enabled, you can use alternative versions of

     

     

    Recommendations for Distribution

     

    Version control of your OpenShift deployment is managed by Git, this particularly means that you need to handle deployment changes, particularly for exploded WAR deployments are following recommendations:

     

    • do not include version prefixes after library names
      • it allows one to replace one library version with another seamlessly
    • check carefully what files are being deployed
      • all of the tools provide difference view for checking what are the changes in newest deployment
    • remove old deployment before uploading new one
      • it is good practice to avoid stale files in the deployment (e.g. files you have removed)

     

     

     

    You can find documentation which includes guides how to host Java EE applications on OpenShift on

     

    https://docs.redhat.com/docs/en-US/

     

     

    Following links should point to Express/Flex documentation directly:

     

    OpenShift Express: Getting Started Guide

     

    OpenShift Flex: User Guide