You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "YING WANG (JIRA)" <ji...@apache.org> on 2010/09/07 17:54:34 UTC

[jira] Created: (OWB-448) More changes for decorator and interceptor passivation support

More changes for decorator and interceptor passivation support
--------------------------------------------------------------

                 Key: OWB-448
                 URL: https://issues.apache.org/jira/browse/OWB-448
             Project: OpenWebBeans
          Issue Type: Improvement
          Components: Interceptor and Decorators
    Affects Versions: 1.0.0-alpha-2
            Reporter: YING WANG
            Assignee: YING WANG
            Priority: Minor
             Fix For: 1.0.0-alpha-3


add some serialization/deserialization code for interceptor, decorator, and @EJB and some of their handlers. Note: due to the nature of abstract decorator and javassist (we use a proxy object to instanciate the abstract decorator class. ),  passivation of abstract decorator is not working right now since the fields in the decorator((proxy object) could not be serialzed by javassist.

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


[jira] Commented: (OWB-448) More changes for decorator and interceptor passivation support

Posted by "Mark Struberg (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OWB-448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12906853#action_12906853 ] 

Mark Struberg commented on OWB-448:
-----------------------------------

please note that the abstract decorator proxy stuff is currently broken! We _must_ _not_ use ProxyFactors#setHandler(MethodHandler) and instead set the MethodHandler to each ProxyObject!

> More changes for decorator and interceptor passivation support
> --------------------------------------------------------------
>
>                 Key: OWB-448
>                 URL: https://issues.apache.org/jira/browse/OWB-448
>             Project: OpenWebBeans
>          Issue Type: Improvement
>          Components: Interceptor and Decorators
>    Affects Versions: 1.0.0-alpha-2
>            Reporter: YING WANG
>            Assignee: YING WANG
>            Priority: Minor
>             Fix For: 1.0.0-alpha-3
>
>
> add some serialization/deserialization code for interceptor, decorator, and @EJB and some of their handlers. Note: due to the nature of abstract decorator and javassist (we use a proxy object to instanciate the abstract decorator class. ),  passivation of abstract decorator is not working right now since the fields in the decorator((proxy object) could not be serialzed by javassist.

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


[jira] Updated: (OWB-448) More changes for decorator and interceptor passivation support

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

Mark Struberg updated OWB-448:
------------------------------

    Fix Version/s: 1.1.0
                       (was: 1.0.0-alpha-3)

> More changes for decorator and interceptor passivation support
> --------------------------------------------------------------
>
>                 Key: OWB-448
>                 URL: https://issues.apache.org/jira/browse/OWB-448
>             Project: OpenWebBeans
>          Issue Type: Improvement
>          Components: Interceptor and Decorators
>    Affects Versions: 1.0.0-alpha-2
>            Reporter: YING WANG
>            Assignee: YING WANG
>            Priority: Minor
>             Fix For: 1.1.0
>
>
> add some serialization/deserialization code for interceptor, decorator, and @EJB and some of their handlers. Note: due to the nature of abstract decorator and javassist (we use a proxy object to instanciate the abstract decorator class. ),  passivation of abstract decorator is not working right now since the fields in the decorator((proxy object) could not be serialzed by javassist.

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


[jira] Closed: (OWB-448) More changes for decorator and interceptor passivation support

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

YING WANG closed OWB-448.
-------------------------

    Resolution: Fixed

There is a limitation that abstract decorator passivation still not works. It is because that we use the proxy itself to store fields defined in the decorator. While when the proxy is serialized, javassist stream only serializes the common proxy related info (See SerializedProxy.java in javassist for details).  Hack javassit code and create our own proxy-like object might fix the issue but it is too dirty to try.  Not sure if using JVM proxy implementation works or not.

> More changes for decorator and interceptor passivation support
> --------------------------------------------------------------
>
>                 Key: OWB-448
>                 URL: https://issues.apache.org/jira/browse/OWB-448
>             Project: OpenWebBeans
>          Issue Type: Improvement
>          Components: Interceptor and Decorators
>    Affects Versions: 1.0.0-alpha-2
>            Reporter: YING WANG
>            Assignee: YING WANG
>            Priority: Minor
>             Fix For: 1.1.0
>
>
> add some serialization/deserialization code for interceptor, decorator, and @EJB and some of their handlers. Note: due to the nature of abstract decorator and javassist (we use a proxy object to instanciate the abstract decorator class. ),  passivation of abstract decorator is not working right now since the fields in the decorator((proxy object) could not be serialzed by javassist.

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