mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-03 04:19:12 +00:00
Issue #1940
This commit is contained in:
parent
b02f225470
commit
6a2f39fb3c
@ -23,6 +23,11 @@ import java.util.Collections;
|
||||
import java.util.Set;
|
||||
|
||||
import javax.servlet.ServletContext;
|
||||
import javax.servlet.http.HttpSessionActivationListener;
|
||||
import javax.servlet.http.HttpSessionAttributeListener;
|
||||
import javax.servlet.http.HttpSessionBindingListener;
|
||||
import javax.servlet.http.HttpSessionIdListener;
|
||||
import javax.servlet.http.HttpSessionListener;
|
||||
|
||||
import org.eclipse.jetty.servlet.ServletContextHandler;
|
||||
import org.eclipse.jetty.util.log.Log;
|
||||
@ -119,6 +124,14 @@ public class EmbeddedCdiHandler extends ServletContextHandler
|
||||
|
||||
// add the rest of the Weld Listeners
|
||||
ctx.addListener(weldListener);
|
||||
if ((weldListener instanceof HttpSessionActivationListener)
|
||||
|| (weldListener instanceof HttpSessionAttributeListener)
|
||||
|| (weldListener instanceof HttpSessionBindingListener)
|
||||
|| (weldListener instanceof HttpSessionListener)
|
||||
|| (weldListener instanceof HttpSessionIdListener))
|
||||
{
|
||||
getSessionHandler().addEventListener(weldListener);
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user