コード例 #1
0
ファイル: LocalBrokerType.java プロジェクト: rcamus/platform
 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
ファイル: LocalBrokerType.java プロジェクト: rcamus/platform
 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);
   }
 }