Skip to content
Permalink
Browse files
The ListenerManager#addListener method now may have the side effect o…
…f starting the listener manager. This may cause unexpected behavior in UtilsTransportServer. Changed UtilsTransportServer so that the listener manager is always started in UtilsTransportServer#start.
  • Loading branch information
veithen committed Dec 13, 2009
1 parent 52b9528 commit 910e1971447dd22ef79a1195be8bea1661b81e0c
Showing 1 changed file with 2 additions and 2 deletions.
@@ -53,24 +53,24 @@ public UtilsTransportServer() throws AxisFault {

// create listener manager
listnMgr = new ListenerManager();
listnMgr.init(cfgCtx);
cfgCtx.setTransportManager(listnMgr);
}

public void addTransport(TransportInDescription trpInDesc,
TransportOutDescription trpDescOut) throws AxisFault {
cfgCtx.getAxisConfiguration().addTransportIn(trpInDesc);
if (trpDescOut != null) {
trpDescOut.getSender().init(cfgCtx, trpDescOut);
cfgCtx.getAxisConfiguration().addTransportOut(trpDescOut);
}
listnMgr.addListener(trpInDesc, false);
}

public void addTransport(TransportInDescription trpInDesc) throws AxisFault {
addTransport(trpInDesc, null);
}

public void start() throws Exception {
listnMgr.init(cfgCtx);
listnMgr.start();
}

0 comments on commit 910e197

Please sign in to comment.