-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi All,
I am using ofbiz + zk. I want to be able to fire an event through EventQueue when a session is crated.
I tried by extending HttpSessionListener but that doesn't work as Executions.getCurrent() is null at that time.
Any other way ???
You should try something like:
ServletContext servletContext = ((HttpSession)session.getNativeSession()).getServletContext();
WebApp webApp = WebManager.getWebApp(servletContext );
EventQueue que = EventQueues.lookup("channel", webApp, true);
where "session" is the first argument of init()
Asked: 2012-02-24 10:36:02 +0800
Seen: 120 times
Last updated: Feb 26 '12