Every time you make a change and push it to the OpenShift application gear, OpenShift stops your gear (that is, all the cartridges), copies the source code from your application Git repo to
app-root/runtime/repo, performs a build, prepares the artifact, and finally starts your gear (that is, all the cartridges). This process takes time and does not suit rapid development. To enable rapid development and faster deployment, OpenShift supports hot deployment. Hot deployment means that you can deploy your changes without the need to restart all the application cartridges.
This recipe will work with all the four supported Java cartridges (Apache Tomcat 6, Apache Tomcat 7, JBoss AS7, and JBoss EAP).