[
https://issues.apache.org/jira/browse/OWB-457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rohit Dilip Kelapure updated OWB-457:
-------------------------------------
Attachment: OWB-457_rohitk.patch
Hi Mark,
I was also coding up a fix for this JIRA issue. I am attaching my patch for
this issue which is still under test.
I took the approach of extending the RequestContext instead of the
SessionContext.
If you see anything useful in my patch please steal it.
I have done some testing with my patch; however it is still a work in progress.
--Thanks,
Rohit Kelapure
> 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, OWB-457_rohitk.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.