Author: veithen
Date: Wed Dec 19 17:21:42 2012
New Revision: 1423967
URL: http://svn.apache.org/viewvc?rev=1423967&view=rev
Log:
Improved logging to investigate a problem in Synpase.
Modified:
axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/engine/DispatchPhase.java
Modified:
axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/engine/DispatchPhase.java
URL:
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/engine/DispatchPhase.java?rev=1423967&r1=1423966&r2=1423967&view=diff
==============================================================================
---
axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/engine/DispatchPhase.java
(original)
+++
axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/engine/DispatchPhase.java
Wed Dec 19 17:21:42 2012
@@ -41,6 +41,8 @@ import org.apache.axis2.transport.Reques
import org.apache.axis2.transport.TransportListener;
import org.apache.axis2.transport.http.HTTPConstants;
import org.apache.axis2.util.JavaUtils;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import javax.xml.namespace.QName;
import java.util.ArrayList;
@@ -48,6 +50,7 @@ import java.util.Iterator;
import java.util.List;
public class DispatchPhase extends Phase {
+ private static final Log log = LogFactory.getLog(DispatchPhase.class);
public DispatchPhase() {
}
@@ -253,6 +256,10 @@ public class DispatchPhase extends Phase
return;
}
+ if (log.isDebugEnabled()) {
+ log.debug("Incoming transport: " + incomingTrs + "; allowed
transports: " + trs);
+ }
+
for (int i = 0; i < trs.size(); i++) {
String tr = (String) trs.get(i);
if (incomingTrs != null && incomingTrs.equals(tr)) {