Skip to content
Permalink
Browse files
AXIS2-4722: Set the useGlobalListener attribute automatically based o…
…n the configuration of the transport.
  • Loading branch information
veithen committed May 23, 2010
1 parent a07c89b commit 97d1fdec96a17af78b87fad6b86972d2d803b007
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
@@ -45,7 +45,7 @@
/** A Map of service name to the protocol endpoints */
private List<E> endpoints = new ArrayList<E>();

protected boolean useGlobalListener = false;
private boolean useGlobalListener;

@Override
public final void init(ConfigurationContext cfgCtx,
@@ -61,6 +61,7 @@ public final void init(ConfigurationContext cfgCtx,
if (endpoint.loadConfiguration(transportIn)) {
startEndpoint(endpoint);
endpoints.add(endpoint);
useGlobalListener = true;
}
}

@@ -144,8 +145,10 @@ protected final void stopListeningForService(AxisService service) {
return;
}
}
log.error("Unable to stop service : " + service.getName() +
" - unable to find the corresponding protocol endpoint");
if (!useGlobalListener) {
log.error("Unable to stop service : " + service.getName() +
" - unable to find the corresponding protocol endpoint");
}
}

protected abstract void stopEndpoint(E endpoint);
@@ -44,10 +44,6 @@
public class UDPListener extends AbstractDatagramTransportListener<Endpoint>
implements ManagementSupport {

public UDPListener() {
this.useGlobalListener = true;
}

@Override
protected IODispatcher createDispatcher(DatagramDispatcherCallback callback)
throws IOException {

0 comments on commit 97d1fde

Please sign in to comment.