[jira] Commented: (FELIX-1962) Add support for (select) Servlet API listeners

2011-01-09 Thread Felix Meschberger (JIRA)

[ 
https://issues.apache.org/jira/browse/FELIX-1962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12979493#action_12979493
 ] 

Felix Meschberger commented on FELIX-1962:
--

In Rev. 1057093 enhanced the HTTP Bridge to register the EventDispatcher such 
that the Proxy Listener of the HTTP Proxy bundle can access it to forward 
HttpSession events.

In Rev. 1057094 added a ProxyListener to the HTTP Proxy bundle which actually 
receives the events from the listener registered with the servlet container 
forwarding them to the EventDispatcher service (if available)

> Add support for (select) Servlet API listeners
> --
>
> Key: FELIX-1962
> URL: https://issues.apache.org/jira/browse/FELIX-1962
> Project: Felix
>  Issue Type: New Feature
>  Components: HTTP Service
>Affects Versions: http-2.0.4
>Reporter: Felix Meschberger
>Assignee: Felix Meschberger
> Fix For: http-2.0.6
>
> Attachments: FELIX-1962-2.patch, FELIX-1962.patch
>
>
> The new Http Service implementation currently does not support any Servlet 
> API listeners at all. Support for some listeners can easily be implemented in 
> a transparent way: ServletContextAttributeListener, ServletRequestListener, 
> ServletRequestAttributeListener.
> The HttpSession listeners can probably not easily be implemented in such a 
> transparent way.
> The ServletContextListener is probably not worth it supporting. Most (if not 
> all) use cases for ServletContextListeners in traditional web applications 
> can be solved in better ways in an OSGi framework.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (FELIX-1962) Add support for (select) Servlet API listeners

2011-01-09 Thread Felix Meschberger (JIRA)

[ 
https://issues.apache.org/jira/browse/FELIX-1962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12979491#action_12979491
 ] 

Felix Meschberger commented on FELIX-1962:
--

Added initial support for listeners in Rev. 1057092 for the base bundle. The 
following listeners are supported

   - ServletContextAttributeListener -- handled by the base bundle wrapping the 
ServletContext handed to the servlets
   - ServletRequestListener -- handled by the base bundle by calling the 
listeners before and after handling the request
   - ServletRequestAttributeListener -- handled by the base bundle by wrapping 
the request object
   - HttpSessionListener -- requires support from the container and thus 
handled via the EventDispatcher which must be
  attached to the servlet container in the same was as the 
DispatcherServlet
   - HttpSessionAttributeListener -- requires support from the container and 
thus handled via the EventDispatcher which must be
  attached to the servlet container in the same was as the 
DispatcherServlet


> Add support for (select) Servlet API listeners
> --
>
> Key: FELIX-1962
> URL: https://issues.apache.org/jira/browse/FELIX-1962
> Project: Felix
>  Issue Type: New Feature
>  Components: HTTP Service
>Affects Versions: http-2.0.4
>Reporter: Felix Meschberger
>Assignee: Felix Meschberger
> Fix For: http-2.0.6
>
> Attachments: FELIX-1962-2.patch, FELIX-1962.patch
>
>
> The new Http Service implementation currently does not support any Servlet 
> API listeners at all. Support for some listeners can easily be implemented in 
> a transparent way: ServletContextAttributeListener, ServletRequestListener, 
> ServletRequestAttributeListener.
> The HttpSession listeners can probably not easily be implemented in such a 
> transparent way.
> The ServletContextListener is probably not worth it supporting. Most (if not 
> all) use cases for ServletContextListeners in traditional web applications 
> can be solved in better ways in an OSGi framework.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (FELIX-1962) Add support for (select) Servlet API listeners

2010-01-03 Thread Felix Meschberger (JIRA)

[ 
https://issues.apache.org/jira/browse/FELIX-1962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12795960#action_12795960
 ] 

Felix Meschberger commented on FELIX-1962:
--

The drawback of adding support for other listeners  (ServletContext and 
HttpSession*) is that this requires more involvement.

For the ServletContextListener we would have to add lifecycle support to our 
ServletContextImpl (not that hard, maybe possible with reference counting for 
registered servlets and resources).

For the HttpSession* listeners we might have to hook into the environment:
  * The embedded Jetty container is not hard (had an early prototype with this)
  * The proxy/bridge case is harder since it requires the embedding to register 
HttpSession*Listener which may be proxied
 (had an early prototype, too) The problem is that like for servlets a 
special setup and proxy is required in the "outer web app"

> Add support for (select) Servlet API listeners
> --
>
> Key: FELIX-1962
> URL: https://issues.apache.org/jira/browse/FELIX-1962
> Project: Felix
>  Issue Type: New Feature
>  Components: HTTP Service
>Affects Versions: http-2.0.4
>Reporter: Felix Meschberger
> Fix For: http-2.0.6
>
> Attachments: FELIX-1962.patch
>
>
> The new Http Service implementation currently does not support any Servlet 
> API listeners at all. Support for some listeners can easily be implemented in 
> a transparent way: ServletContextAttributeListener, ServletRequestListener, 
> ServletRequestAttributeListener.
> The HttpSession listeners can probably not easily be implemented in such a 
> transparent way.
> The ServletContextListener is probably not worth it supporting. Most (if not 
> all) use cases for ServletContextListeners in traditional web applications 
> can be solved in better ways in an OSGi framework.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (FELIX-1962) Add support for (select) Servlet API listeners

2010-01-02 Thread Sten Roger Sandvik (JIRA)

[ 
https://issues.apache.org/jira/browse/FELIX-1962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12795900#action_12795900
 ] 

Sten Roger Sandvik commented on FELIX-1962:
---

Cool. Was thinking of supporting this in both ExtHttpService and whiteboard. 
Will check out your patch. Also support for HttpSession*Listeners should be 
possible. ServletContextListeners could be nice to have if you want to use 
unmodified code that depend on such startup mechanism.

> Add support for (select) Servlet API listeners
> --
>
> Key: FELIX-1962
> URL: https://issues.apache.org/jira/browse/FELIX-1962
> Project: Felix
>  Issue Type: New Feature
>  Components: HTTP Service
>Affects Versions: http-2.0.4
>Reporter: Felix Meschberger
> Attachments: FELIX-1962.patch
>
>
> The new Http Service implementation currently does not support any Servlet 
> API listeners at all. Support for some listeners can easily be implemented in 
> a transparent way: ServletContextAttributeListener, ServletRequestListener, 
> ServletRequestAttributeListener.
> The HttpSession listeners can probably not easily be implemented in such a 
> transparent way.
> The ServletContextListener is probably not worth it supporting. Most (if not 
> all) use cases for ServletContextListeners in traditional web applications 
> can be solved in better ways in an OSGi framework.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.