Пример #1
5
 public void sendNotification(int userId, String message) {
   EventBus eventBus = EventBusFactory.getDefault().eventBus();
   eventBus.publish(CHANNEL + userId, new FacesMessage("SAPo", message));
 }
Пример #2
0
 public void send() {
   EventBus eventBus = EventBusFactory.getDefault().eventBus();
   eventBus.publish(
       CHANNEL,
       new FacesMessage(
           StringEscapeUtils.escapeHtml(summary), StringEscapeUtils.escapeHtml(detail)));
 }