예제 #1
0
 public void unsubscribe(
     String topicName,
     BrokerConfiguration brokerConfiguration,
     AxisConfiguration axisConfiguration)
     throws BrokerEventProcessingException {
   try {
     Axis2Util.removeOperation(topicName, brokerConfiguration, axisConfiguration);
   } catch (AxisFault axisFault) {
     throw new BrokerEventProcessingException("Can not remove operation ", axisFault);
   }
 }
예제 #2
0
 public void subscribe(
     String topicName,
     BrokerListener brokerListener,
     BrokerConfiguration brokerConfiguration,
     AxisConfiguration axisConfiguration)
     throws BrokerEventProcessingException {
   // When publishing we only need to register the axis2 service
   // no subscribing
   try {
     Axis2Util.registerAxis2Service(
         topicName, brokerListener, brokerConfiguration, axisConfiguration);
   } catch (AxisFault axisFault) {
     throw new BrokerEventProcessingException(
         "Can not create " + "the axis2 service to receive events", axisFault);
   }
 }