Hi Paolo, Which version of ULC are you using?
Please see http://www.canoo.com/jira/browse/UBA-7334. There is now kill() method on ULCSession. You can get the session from the HTTPSession store and invoke the method. For example this is how it is invoked in the HTTPSessionListener: public void sessionDestroyed(HttpSessionEvent httpSessionEvent) { SessionStore sessionStore = ServletContainerAdapterHelper.getSessionStore(httpSessionEvent.getSession( )); if (sessionStore != null) { String[] sessionIds = sessionStore.getSessionIds(); for (int i = 0; i < sessionIds.length; i++) { String sessionId = sessionIds[i]; ISession session = sessionStore.get(sessionId); session.kill(); } } } > stop them in asynchronously respect to client side (that could be gone > offline or have some problem)? If the client has gone offline, there won't be any keep-alive request and server session will time out eventually. Thanks and regards, Janak ----------------------------------------- Janak Mulani email: [EMAIL PROTECTED] url: http://www.canoo.com Beyond AJAX - Java Rich Internet Applications http://www.canoo.com/ulc ----------------------------------------- > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Paolo Scaffardi > Sent: Tuesday, September 30, 2008 4:15 PM > To: [email protected] > Subject: [ULC-developer] Brute-force killing an application > > Hi there. > I wish to kill ULC application instances from outside any > ULCSession on > a high-level timeout basis (not related to HTTP session timeout). > > I know that using ApplicationContext.terminate() from inside a > ULCSession thread can terminate active Application, but i need to do > that from elsewhere (or from another Application instance). I have not > problem having Application instances but... what method > should i use to > stop them in asynchronously respect to client side (that could be gone > offline or have some problem)? How can i achieve that? > > Thank you for any help. > > Bye, > Paolo Scaffardi > GFP Lab S.r.l. > http://www.gfplab.com > > _______________________________________________ > ULC-developer mailing list > [email protected] > http://lists.canoo.com/mailman/listinfo/ulc-developer > _______________________________________________ ULC-developer mailing list [email protected] http://lists.canoo.com/mailman/listinfo/ulc-developer
