Thank you for being a valued client of CM First Group. If you have any technical issues or concerns, please open a ticket on support.cmfirstgroup.com, email CM First technical support at support@cmfirstgroup.com or call us on our 24/7 customer hotline at +1 (512) 623-7586.

Follow

How to implement the WebClientMultisession Servlet

By default WebClient can only maintain one WebClient session for the same browser, this causes that even if you open your WebClient application in multiple tabs, all of those tabs will share the same information, to change this you can use the WebClientMultiSession servlet that allow you create a different WebClient session for each tab you open in your browser.

Conditions:

  • Only one Servlete can be running in the applicacion if you add the WebClientMultiSession please remove the WebClient servlet
  • Make sure your Web.xml Servlet-Mappinf URL-pattern is the same as in your deeplink.java

temp.png

to implement this servlet just follow these steps:

  • In Eclipse, right click over your web project and select New->Servlet

temp.png

  • From the “Create Servlet” window, mark the “Use an existing Servlet class or JSP” checkbox, then use the browse button to select the WebClientMultiSessionServlet servlet and click on the “Finish” button.

1.png

2.png

3.png

  • Open your WebClient.properties file and change the value for the Define.WSACTION entry to the following value “WSACTION=/<YOUR WEB PROJECT>/ WebClientMultiSessionServlet”, example:
    • Original
  •          Define.WSACTION=/TestWeb/WebClientServlet

    • Modified

             Define.WSACTION=/TestWeb/WebClientMultiSessionServlet

  • Test your application, remember that your URL must point to the WebClientMultiSession servlet instead of the default WebClient servlet

4.png

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk