You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "David Jencks (JIRA)" <ji...@apache.org> on 2010/11/30 01:45:11 UTC

[jira] Created: (OWB-502) Only cache the ContextService once, in the SingletonService

Only cache the ContextService once, in the SingletonService
-----------------------------------------------------------

                 Key: OWB-502
                 URL: https://issues.apache.org/jira/browse/OWB-502
             Project: OpenWebBeans
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.0.1
            Reporter: David Jencks
            Assignee: Gurkan Erdogdu
             Fix For: 1.0.1


Currently the ContextService is cached once in the SingletonService, which can be replaced in environments that don't use enough classloaders to distinguish different web apps in an ear, and also cached by classloader in ContextFactory, which can't as easily be replaced.  Caching twice is too compilcated.

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


[jira] Commented: (OWB-502) Only cache the ContextService once, in the SingletonService

Posted by "Gurkan Erdogdu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OWB-502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12965133#action_12965133 ] 

Gurkan Erdogdu commented on OWB-502:
------------------------------------

AFAIK those additions in ContextFactory was committed by Mark. I do not remember the reason :)

> Only cache the ContextService once, in the SingletonService
> -----------------------------------------------------------
>
>                 Key: OWB-502
>                 URL: https://issues.apache.org/jira/browse/OWB-502
>             Project: OpenWebBeans
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.1
>            Reporter: David Jencks
>            Assignee: Gurkan Erdogdu
>             Fix For: 1.0.1
>
>
> Currently the ContextService is cached once in the SingletonService, which can be replaced in environments that don't use enough classloaders to distinguish different web apps in an ear, and also cached by classloader in ContextFactory, which can't as easily be replaced.  Caching twice is too compilcated.

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


[jira] Commented: (OWB-502) Only cache the ContextService once, in the SingletonService

Posted by "Gurkan Erdogdu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OWB-502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12965141#action_12965141 ] 

Gurkan Erdogdu commented on OWB-502:
------------------------------------

Trunk gives compile errors. I will correct them.

> Only cache the ContextService once, in the SingletonService
> -----------------------------------------------------------
>
>                 Key: OWB-502
>                 URL: https://issues.apache.org/jira/browse/OWB-502
>             Project: OpenWebBeans
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.1
>            Reporter: David Jencks
>            Assignee: Gurkan Erdogdu
>             Fix For: 1.0.1
>
>
> Currently the ContextService is cached once in the SingletonService, which can be replaced in environments that don't use enough classloaders to distinguish different web apps in an ear, and also cached by classloader in ContextFactory, which can't as easily be replaced.  Caching twice is too compilcated.

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


[jira] Commented: (OWB-502) Only cache the ContextService once, in the SingletonService

Posted by "David Jencks (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OWB-502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12965037#action_12965037 ] 

David Jencks commented on OWB-502:
----------------------------------

Fixed in rev 1040364.

> Only cache the ContextService once, in the SingletonService
> -----------------------------------------------------------
>
>                 Key: OWB-502
>                 URL: https://issues.apache.org/jira/browse/OWB-502
>             Project: OpenWebBeans
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.1
>            Reporter: David Jencks
>            Assignee: Gurkan Erdogdu
>             Fix For: 1.0.1
>
>
> Currently the ContextService is cached once in the SingletonService, which can be replaced in environments that don't use enough classloaders to distinguish different web apps in an ear, and also cached by classloader in ContextFactory, which can't as easily be replaced.  Caching twice is too compilcated.

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


[jira] Commented: (OWB-502) Only cache the ContextService once, in the SingletonService

Posted by "Gurkan Erdogdu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OWB-502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12965140#action_12965140 ] 

Gurkan Erdogdu commented on OWB-502:
------------------------------------

Seems that actual comment of that commit was 

"OWB-369 improve ContextsService retrieval

Getting the ContextsService each time was very expensive.
We now cache it depending on the ClassLoader. This way
it is possible that different WebApps may configure 
different ContextsServices.

"

> Only cache the ContextService once, in the SingletonService
> -----------------------------------------------------------
>
>                 Key: OWB-502
>                 URL: https://issues.apache.org/jira/browse/OWB-502
>             Project: OpenWebBeans
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.1
>            Reporter: David Jencks
>            Assignee: Gurkan Erdogdu
>             Fix For: 1.0.1
>
>
> Currently the ContextService is cached once in the SingletonService, which can be replaced in environments that don't use enough classloaders to distinguish different web apps in an ear, and also cached by classloader in ContextFactory, which can't as easily be replaced.  Caching twice is too compilcated.

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


[jira] Commented: (OWB-502) Only cache the ContextService once, in the SingletonService

Posted by "Gurkan Erdogdu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OWB-502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12965139#action_12965139 ] 

Gurkan Erdogdu commented on OWB-502:
------------------------------------

I have found the reason, see OWB-369

> Only cache the ContextService once, in the SingletonService
> -----------------------------------------------------------
>
>                 Key: OWB-502
>                 URL: https://issues.apache.org/jira/browse/OWB-502
>             Project: OpenWebBeans
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.1
>            Reporter: David Jencks
>            Assignee: Gurkan Erdogdu
>             Fix For: 1.0.1
>
>
> Currently the ContextService is cached once in the SingletonService, which can be replaced in environments that don't use enough classloaders to distinguish different web apps in an ear, and also cached by classloader in ContextFactory, which can't as easily be replaced.  Caching twice is too compilcated.

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


[jira] Commented: (OWB-502) Only cache the ContextService once, in the SingletonService

Posted by "Gurkan Erdogdu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OWB-502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12965148#action_12965148 ] 

Gurkan Erdogdu commented on OWB-502:
------------------------------------

Compiler errors fix in r1040432.

> Only cache the ContextService once, in the SingletonService
> -----------------------------------------------------------
>
>                 Key: OWB-502
>                 URL: https://issues.apache.org/jira/browse/OWB-502
>             Project: OpenWebBeans
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.1
>            Reporter: David Jencks
>            Assignee: Gurkan Erdogdu
>             Fix For: 1.0.1
>
>
> Currently the ContextService is cached once in the SingletonService, which can be replaced in environments that don't use enough classloaders to distinguish different web apps in an ear, and also cached by classloader in ContextFactory, which can't as easily be replaced.  Caching twice is too compilcated.

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


[jira] Closed: (OWB-502) Only cache the ContextService once, in the SingletonService

Posted by "Gurkan Erdogdu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OWB-502?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gurkan Erdogdu closed OWB-502.
------------------------------

       Resolution: Fixed
    Fix Version/s: 1.1.0

> Only cache the ContextService once, in the SingletonService
> -----------------------------------------------------------
>
>                 Key: OWB-502
>                 URL: https://issues.apache.org/jira/browse/OWB-502
>             Project: OpenWebBeans
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.1
>            Reporter: David Jencks
>            Assignee: Gurkan Erdogdu
>             Fix For: 1.1.0, 1.0.1
>
>
> Currently the ContextService is cached once in the SingletonService, which can be replaced in environments that don't use enough classloaders to distinguish different web apps in an ear, and also cached by classloader in ContextFactory, which can't as easily be replaced.  Caching twice is too compilcated.

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