Ejemplo n.º 1
0
  public void publish(String topicName, Object message, BrokerConfiguration brokerConfiguration)
      throws BrokerEventProcessingException {

    EventBroker eventBroker = BrokerServiceValueHolder.getEventBroker();
    Message eventMessage = new Message();
    eventMessage.setMessage(((OMElement) message));
    try {
      eventBroker.publishRobust(eventMessage, topicName);
    } catch (EventBrokerException e) {
      throw new BrokerEventProcessingException("Can not publish the to local broker ", e);
    }
  }