HipChat Notifier

HipChat is a team chat application created by Atlassian. It can be used
for teams to discuss topics in separate "rooms", but also supports
integrations from services to notify users of events.

Payara Server has now included functionality to send notifications from
the
Notification Service
to a HipChat room

Requirements

To use HipChat as a notification target you must have a HipChat account
and a room where notifications will be sent.

Configuration

At a high level, the steps to configure the HipChat notifier are the following:

In HipChat, create a new notification token for the required room.

Proceed to configure the notifier on Payara Server

HipChat Configuration

Assuming you already have a HipChat account, the steps to create a room
and generate a notification token are as follows:

Create a new room in HipChat where your notifications will be sent,
if one does not exist. The example below shows the creation of a room
called "payara-notifications"

After you have created the target room, or if a room already exists, visit
https://${your-team-name}.hipchat.com/rooms and search for the room
name to filter out any others, as shown below:

Select your room and select the "Tokens" link in the left-hand menu to
add a new notification token:

Finally, give your token an informative label, since this will be displayed
in your room when notifications are received:

Payara Server Configuration

Once you have a token, the configuration of the notifier within Payara
Server involves just one step. In the Admin Console, simply add the room
name and token to the appropriate fields, as shown below:

Make sure that the Enabled box is ticked so that the notifier will be
used. If you would like the changes to take effect without needing a
restart, tick the Dynamic box as well.

To make these changes using an asadmin command use the following command sample,
which mirrors the above screenshot:

Once configuring is complete and both the notification service and the
service you are using are enabled, you should see output like the
example, which shows the Healthcheck service outputting CPU information
every 3 seconds: