Skip to content
Snippets Groups Projects
Commit 26d74199 authored by Simon Spinner's avatar Simon Spinner
Browse files

Split up the URL in application and component.

parent 3c4bbeca
No related branches found
No related tags found
No related merge requests found
......@@ -59,8 +59,15 @@ public class WebServiceOutgoingCallInterceptor extends GenericSOAPHandler {
URL url;
try {
url = new URL((String)msgContext.get("javax.xml.ws.service.endpoint.address"));
Method caller = (Method)msgContext.get("java.lang.reflect.Method");
ComponentRecord component = MonitoringService.INSTANCE.requireComponent(url.getHost(), "", "", url.getPath());
Method caller = (Method)msgContext.get("java.lang.reflect.Method");
String application = "";
String componentName = url.getPath().substring(1); // Remove first slash
int idx = url.getPath().lastIndexOf("/");
if (idx > 0) {
application = componentName.substring(0, idx);
componentName = componentName.substring(idx + 1);
}
ComponentRecord component = MonitoringService.INSTANCE.requireComponent(url.getHost(), 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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment