[ 
https://issues.apache.org/jira/browse/OWB-527?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12999110#comment-12999110
 ] 

Mark Struberg commented on OWB-527:
-----------------------------------

Nope, sadly it is not ok. In an EE server it might happen that one WAR gets 
served via e.g. jetty and another one via tomcat. But both might get served by 
the same OWB jar...

> JspFactory.getDefaultFactory() is synchronized, We can cache the return value 
> to improve performance
> ----------------------------------------------------------------------------------------------------
>
>                 Key: OWB-527
>                 URL: https://issues.apache.org/jira/browse/OWB-527
>             Project: OpenWebBeans
>          Issue Type: Bug
>          Components: Lifecycle
>    Affects Versions: 1.0.0
>            Reporter: Xiaoming Shi
>            Assignee: Mark Struberg
>
> In the file:
> ./openwebbeans-1.0.0/webbeans-web/src/main/java/org/apache/webbeans/web/lifecycle/WebContainerLifecycle.java
>        line:86
> The value returned by JspFactory.getDefaultFactory()  can be cached to reduce 
> race and improve performance
>  (Similar to the Apache Bug, 
> https://issues.apache.org/bugzilla/show_bug.cgi?id=44408)

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to