[
https://issues.apache.org/jira/browse/OWB-481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12923960#action_12923960
]
David Jencks commented on OWB-481:
----------------------------------
I'd like to suggest that the WebBeansConfigurationListener at least be
separated into an almost-certain-to-not-work ServletContextListener and an
everything-else-listener that will work. Currently geronimo has to do this so
the WebBeansConfigurationListener doesn't try to re-initialize everything when
the ServletContextListener method is called (too late).
> WebBeansConfigurationListener implementing ServletContextListener is not
> likely to work
> ---------------------------------------------------------------------------------------
>
> Key: OWB-481
> URL: https://issues.apache.org/jira/browse/OWB-481
> Project: OpenWebBeans
> Issue Type: Bug
> Reporter: David Jencks
> Assignee: Gurkan Erdogdu
>
> Currently WebBeansConfigurationListener implements ServletContextListener and
> uses the contextInitialized method to initialize OWB for the web app. Given
> an application containing a ServletContextListener that is a web bean, this
> requires that
> 1. the OWB WebBeansConfigurationListener ServletContextListener get
> installed before the app's ServletContextListeners
> 2. the OWB WebBeansConfigurationListener have it's contextInitialized called
> before the servlet container instantiates the apps ServletContextListeners
> that are web beans.
> There's no way to guarantee this will happen in a compliant servlet
> container. (Neither happens in the geronimo tomcat integration; we could
> force the first to happen, but not the second).
> It might be possible to do the initialization in a
> ServletContainerInitializer since I think these get called before any
> application classes start getting instantiated.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.