Findout Shell Being Use at Runtime


Is there a way to check during runtime what shell is being applied? Is there a session variable that lets MWS know what shell is being use by the user?


Some of these APIs are not officially part of the public API, so they are subject to change without notice.

But, you could try something like this:

javax.servlet.http.HttpServletRequest request = com.webmethods.portal.framework.impl.PortalServlet.getCurrentRequest();
com.webmethods.portal.framework.presentation.PresentationData pdo = com.webmethods.portal.framework.presentation.PresentationData.getPresentationData(request);
String currentShellName = pdo.getShell().getThing().getName();

Out of interest: how could you find out about them, then?