Please note that these documents apply to OpenShift Online v2 only (accounts created before August 1st, 2016).
If you are using one of the OpenShift 3 products, please refer to documents available at

JBoss Unified Push

The Unified Push Server allows developers to send native push messages to Apple’s Push Notification Service (APNS) and Google’s Cloud Messaging (GCM). It features a built-in administration console that makes it easy for developers to create and manage the push related aspects of their applications for any mobile development environment. Includes client SDKs (iOS, Android, & Cordova), and a REST based sender service with an available Java sender library.


This cartridge provides the Red Hat JBoss Unified Push Server for easy deployment to OpenShift. The Red Hat JBoss Unified Push Server is a cloud based service that allows for sending native push notifications to different mobile platforms. The initial version of the server supports Apple’s APNs and Google Cloud Messaging.

Product Highlights

Native Push notifications for mobile devices can be an extremely complex and challenging aspect of any mobile application. You need to handle multiple platforms, device registrations, message filtering, cleaning up of device references, just to name a few. However the use-cases that it solves can be handled no other way.

This is where the Red Hat JBoss Unified Push Server comes in. With its unified API across the most popular mobile platforms, language agnostic RESTful interfaces, secured administrative console, and more, enabling native push in mobile applications has never been easier

Application and Language Agnostic

The backend integration based on a completely RESTful architecture. This means any application backend, from Java EE, Node.js, or PHP can easily interact with, and trigger push notifications. There are however, easy to use language specific libraries available to make interacting with the server even easier.

  • Java Sender, 1.0.0

  • Node.js Sender, 0.7.0

The API docs discuss how to send a push notification, using curl.

Simplified Unified API

Client side SDKs which help to register the device from within your application with the Unified Push Server. Below is a list of supported platforms

  • Apache Cordova Push Plugin 1.0.2

  • Android Push 1.0.0

  • iOS Push 1.0.0

Get Pushing Faster

To get started using the JBoss Unified Push Server there are a series of quickstarts, from the basics, to business logic integration. Each quickstart comes with multiple client options (Android, iOS, and Apache Cordova (jQuery Mobile & Angular/Ionic).

Helloworld Push

The HelloWorld is a set of simple clients that show how to register a device with the Unified Push Server. On the Admin UI of the server you can use the "Send Push" menu to send a message to the different applications, running on your phone.

Mobile Contacts Push

The Mobile Contacts Quickstart is a Push-enabled CRUD example, containing several client applications (Android, Apache Corodva and iOS) and a JavaEE-based backend. The backend app is a secured (Picketlink) JAX-RS application which sends out push messages when a new contact has been created. Sometimes the backend (for a mobile application) has to run behind the firewall. For that the quickstart contains a Fabric8 based Proxy server as well.


JBoss Unified Push on OpenShift is available as a Developer Preview to allow you to explore the capabilities of the technology running on OpenShift. This preview does not come with guaranteed support. It can and likely will change as we make updates based on your use and feedback. Think of it in traditional product terms as an Alpha or Beta release.

We are making this technology available under the terms and conditions of our JBoss Developer Program. By loading the cartridge you accept these terms, which generally state that you can use this cartridge for development purposes and not for production or to access updates without an active Red Hat subscription.

For general help on OpenShift, please visit the Help Center.

You can provide feedback, requests or contributions for the JBoss Unified Push cartridge on at:

Also check out the Quickstarts on

Getting Started

You first need to create an OpenShift account before being able to create applications with the Red Hat JBoss Unified Push Server cartridge. For information on how to create and setup your OpenShift account, please refer to Getting Started with OpenShift Online.


You have different options to create your application.

Approach 1: use the OpenShift create application page

Go to the OpenShift create application page and select the "JBoss Unified Push" cartridge from the "xPaaS" category. Configure the application in the following pages (you need to specify at least the Public URL. If you have a subscription for Openshift that gives you access to other gear sizes, you can specify them in the Gears field).

Approach 2: use the rhc command line

If you want to use the rhc command line type:

rhc app create --no-git <APP_NAME> jboss-unified-push-2

If you have a subscription for Openshift that gives you access to other gear sizes, you can specify them running i.e. :

rhc app create -g medium --no-git <APP_NAME> jboss-unified-push-2

When the installation completes, you will be presented with a list of generated users and passwords similar to the screencap below. Make sure you save them!

The Red Hat JBoss Unified Push Server cartridge defaults to using MySQL.


Once the server is running access it via https://{APP_NAME}-{NAMESPACE} For more information on using the console, see the JBoss Unified Push documentation.

The default username and password are admin and 123, respectively. For security, on first login you are immediately prompted to change the password.

Access into the application shell

To access into the application shell:

rhc ssh {APP_NAME}

Manage JBoss EAP configuration

You should not need to configure the underlying JBoss EAP server, as this is a cloud service, not a runtime. However, if required the main configuration file for JBoss EAP is standalone.xml This file is available in your cartridge repository at location ./unified-push/standalone/configuration/standalone.xml. This is useful for changing container configurations such as root logger level and so on.

Template Repository Layout

  • ./unified-push/usr/template/.openshift/ — Location for OpenShift specific files

  • action_hooks/ — See the Action Hooks documentation

  • markers/ — See the Markers section below

Environment Variables

The unified-push cartridge provides several environment variables to reference for ease of use:

  • OPENSHIFT_UNIFIED_PUSH_IP — The IP address used to bind JBoss EAP






  • JAVA_OPTS_EXT — Appended to JAVA_OPTS prior to invoking the Java VM

For more information about environment variables, consult the OpenShift Application Author Guide.


You can add marker files to ./unified-push/usr/template/.openshift/markers/ to enable debugging application code.

The enable_jpda marker file will enable the JPDA socket based transport on the java virtual machine running the JBoss EAP 6. This enables you to remotely debug code running inside the JBoss EAP 6.

cd ./unified-push/usr/template/.openshift/markers/
touch enable_jpda

Video Walkthrough