Browser Integration error when launched URL has no interaction.

Box entitled "Portal/J" with message "Error: Unable to start the Portal/J Browser Integration session" might appear when URL being launched has no user interaction. For example you might launch a servlet to consume a web service and return to the PassPort panel, all without user interaction.



Change code in ../portalj/webdocs/html/runtime/PJIntegrationStartURL.tmpl.js. Add code to somehow determine that you do not expect user interaction. This might be done by parsing the URL being launched for a particular string. In function checkIfStartedWindowClosed(), g_StartedWindow.closed would be true if user interaction is not expected and there is no new browser. Do not execute sendFinishMessage(), but instead execute:

okToUnload=true;
sendMessage("finish");
closeThisWindow();

Reply