Exemple #1
0
  // This is not called by anything?!
  protected void stopListeners() throws MuleException {
    @SuppressWarnings("unchecked")
    List<InboundEndpoint> endpoints = getIncomingEndpoints();

    for (InboundEndpoint endpoint : endpoints) {
      MessageReceiver receiver =
          ((AbstractConnector) endpoint.getConnector()).getReceiver(this, endpoint);
      if (receiver != null) {
        receiver.stop();
      }
    }
  }
Exemple #2
0
  // This is not called by anything?!
  protected void stopListeners() throws MuleException {
    InboundEndpoint endpoint;
    List endpoints = getIncomingEndpoints();

    for (Iterator it = endpoints.iterator(); it.hasNext(); ) {
      endpoint = (InboundEndpoint) it.next();
      MessageReceiver receiver =
          ((AbstractConnector) endpoint.getConnector()).getReceiver(this, endpoint);
      if (receiver != null) {
        receiver.stop();
      }
    }
  }