MessageConsumer consumer = new MessageConsumer();
AMQPBroadcastReceiver receiver = new AMQPBroadcastReceiverImpl(properties, consumer);
System.out.println("Waiting for broadcast messages : \n");
receiver.Subscribe();
}
public static class MessageConsumer implements AMQPCallback {
public void onMessage(String message) {
System.out.println("Received : " + message);