예제 #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)));
 }