I’m getting a strange issue where I’m seeing multiple sessions (as reported by the Tomcat manager’s Sessions page for the web app).
I simply deploy the webapp and open in once in the browser. Suddenly I have 8 sessions reported.
I don’t think I’m doing anything special here… I’m not using @Push or anything, just a plain old UI instance. I did notice I didn’t switch productionMode to true when in production but I don’t think that matters too much either.
public class MyWidget extends UI
{
@WebServlet(value = "/*", asyncSupported = true)
@VaadinServletConfiguration(productionMode = false, ui = MyWidget.class, widgetset = "com.me.AppWidgetSet")
public static class Servlet extends VaadinServlet {
}
@Override
protected void init(VaadinRequest request) {
setLocale(Locale.UK);
/* CREATE ALL THE UI BITS */