Exemplo n.º 1
5
 public void sendNotification(int userId, String message) {
   EventBus eventBus = EventBusFactory.getDefault().eventBus();
   eventBus.publish(CHANNEL + userId, new FacesMessage("SAPo", message));
 }
Exemplo n.º 2
0
 public void send() {
   EventBus eventBus = EventBusFactory.getDefault().eventBus();
   eventBus.publish(
       CHANNEL,
       new FacesMessage(
           StringEscapeUtils.escapeHtml(summary), StringEscapeUtils.escapeHtml(detail)));
 }