From 9e9fe96007e28de41c53dd61dbbe311d2d5de38c Mon Sep 17 00:00:00 2001 From: Simon Spinner <simon.spinner@uni-wuerzburg.de> Date: Thu, 9 Jun 2016 13:59:38 +0200 Subject: [PATCH] Add port to hostname in WebServiceOutgoingCallInterceptor. --- .../interceptors/WebServiceOutgoingCallInterceptor.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools.descartes.prisma.agent.wildfly/src/main/java/tools/descartes/prisma/agent/wildfly/interceptors/WebServiceOutgoingCallInterceptor.java b/tools.descartes.prisma.agent.wildfly/src/main/java/tools/descartes/prisma/agent/wildfly/interceptors/WebServiceOutgoingCallInterceptor.java index 7bcc801..34a85ed 100644 --- a/tools.descartes.prisma.agent.wildfly/src/main/java/tools/descartes/prisma/agent/wildfly/interceptors/WebServiceOutgoingCallInterceptor.java +++ b/tools.descartes.prisma.agent.wildfly/src/main/java/tools/descartes/prisma/agent/wildfly/interceptors/WebServiceOutgoingCallInterceptor.java @@ -31,8 +31,6 @@ import java.net.MalformedURLException; import java.net.URL; import java.util.Deque; -import javax.servlet.http.HttpServletRequest; -import javax.xml.namespace.QName; import javax.xml.ws.handler.MessageContext; import org.jboss.logging.Logger; @@ -67,7 +65,8 @@ public class WebServiceOutgoingCallInterceptor extends GenericSOAPHandler { application = componentName.substring(0, idx - 1); componentName = componentName.substring(idx); } - ComponentRecord component = MonitoringService.INSTANCE.requireComponent(url.getHost(), application, "", componentName); + ComponentRecord component = MonitoringService.INSTANCE + .requireComponent(url.getHost() + ":" + url.getPort(), application, "", componentName); OperationRecord currentOperation = currentInvocation.requireEndpoint(component, caller.getDeclaringClass().getName(), "http", caller.getName()); // TODO: We currently support only one-way messages. Inbound messages are ignored. InvocationRecord outgoingInvocation = currentOperation.startInvocation(); -- GitLab