- Code: Select all
package com.itechprofessionals.plugins.webservices;
public class SessionListener implements HttpSessionListener{
Map itechsessions = new HashMap();
ServletContext sc = null
public void sessionCreated(HttpSessionEvent hse) {
...
}
public void sessionDestroyed(HttpSessionEvent hse) {
...
}
}
And I added this to the web.xml in application_server/server/webapps/ROOT/WEB-INF
- Code: Select all
<listener>
<listener-class>com.itechprofessionals.plugins.webservices.SessionListener</listener-class>
</listener>
My servlet is created from the server plugin with something like IServerAccess.registerWebService("iTechWebService", new ServletService());
However My SessionListener doesn't seem to be listening to requests on the ServletService. Any ideas?