[ 
https://issues.apache.org/jira/browse/OWB-457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark Struberg updated OWB-457:
------------------------------

    Attachment: OWB-457.patch

Work in progress! This patch introduces a LazySessionContext.
It will be used instead creating a fully blown Session.
The *real* SessionContext will only be created if a bean get's requested.

All this stuff needs tough testing though!

> we must not create a SessionContext for static resource reqeusts
> ----------------------------------------------------------------
>
>                 Key: OWB-457
>                 URL: https://issues.apache.org/jira/browse/OWB-457
>             Project: OpenWebBeans
>          Issue Type: Bug
>            Reporter: Mark Struberg
>            Assignee: Mark Struberg
>         Attachments: OWB-457.patch
>
>
> we currently trigger the creation of a new session in 
> WebBeansConfigurationListener#requestInitialized. 
> This leads to unnecessarily creating tons of SessionContexts if a static 
> resource like an image gets requested.
> We should seek a way to either configurably exclude paths from this mechanism 
> or to only create the SessionContext if a SessionContext gets requested 
> inside the BeanManager

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

Reply via email to