I java a small JSP webapp which I am deploying in the MWS (Jetty) server.
What I am trying to do is associate the java session with an MWS portal session. ie. programmatically login to the portal system and re-direct to my portlet app.
I was wondering if there was a way to do this correctly. I’ve experimented with the following:
IContext context = com.webmethods.portal.bizPolicy.impl.ContextFactory.acquireContext(request);
IBizPolicyManager bpm = (IBizPolicyManager) PortalSystem.getBizPolicyProvider();
IDirSystemBizPolicy dirSystemPolicy = (IDirSystemBizPolicy) bpm.getBizPolicy(IBizPolicyNames.DIRECTORY_SYSTEM);
IDirUser user = dirSystemPolicy.authenticateUser(context, username, password);
…which tests authentication, however for some reason it causes havoc with other session in the portal app (weird!).
Any suggestions/direction greatly appreciated.