Well, you can try this “unsupported” code:
String contextstack = InvokeState.getCurrentState().getAuditRuntime().getContextStack();
What you get is a stack containing 3 elements, rootcontext, parentcontext and contextid. Sometimes, the stack contains only 2 elements or 1 element:
- rootcontext+prentcontextid in which case contextid=parentcontextid
- or rootcontextid only, in which case, contextid=parentcontextid=rootcontextid, I think…
I am still wondering why these type of info are not yet public due to their usefullness…
#Integration-Server-and-ESB#webMethods-General#webMethods