[jboss-jira] [JBoss JIRA] (AS7-2703) clustering task, JPA interceptors should be serializable

Scott Marlow (Commented) (JIRA) jira-events at lists.jboss.org
Wed Jan 4 00:42:10 EST 2012


    [ https://issues.jboss.org/browse/AS7-2703?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12653693#comment-12653693 ] 

Scott Marlow commented on AS7-2703:
-----------------------------------

I'm closing this jira and reverting the JPA interceptor "serialization" changes.

>From IRC:
{quote}
<smarlow> stuartdouglas:  regarding AS7-2703, are you saying that interceptors are not serialized with the StatefulSessionComponent, so I may as well not bother making the JPA interceptors serializable?  
<jbossbot> jira [AS7-2703] clustering task, JPA interceptors should be serializable [Open (Unresolved) Sub-task, Major, Scott Marlow] https://issues.jboss.org/browse/AS7-2703
<stuartdouglas> yes
<stuartdouglas> ~ a week ago I noticed that no interceptors were being serialized
<stuartdouglas> so I changed things so that now user level interceptors serialise their state
<stuartdouglas> but not container level interceptors, cause they all seem to be basically stateless
<stuartdouglas> or at least container only transient state that can be re-created by simply re-creating the interceptor
<stuartdouglas> have a look at org.jboss.as.ejb3.component.stateful.SerializedStatefulSessionComponent
* smarlow looking
<stuartdouglas> StatefulSessionComponentInstance has a writeReplace that returns one of those
<stuartdouglas> it just contains the SFSB service name, the serialised instance, and the serialised interceptor state 
<stuartdouglas> when it is de-serialized a new instance is created, but it re-uses the de-serialized instance and interceptor state 
<stuartdouglas> and does not call the post construct chain 
<smarlow> stuartdouglas:  when the component.constructComponentInstance is invoked, is that like creating the SFSB for the first time otherwise (except for the post construct)?
<stuartdouglas> basically 
<stuartdouglas> it will re-create all interceptors
<stuartdouglas> but the serialised interceptors are already in the InterceptorFactoryContext, so they are not re-created 
<stuartdouglas> (and any interceptor can serialise data using that mechanism if it needs to, although at the moment none of them do, except for the JSR299BindingsInterceptor)
{quote}
                
> clustering task, JPA interceptors should be serializable
> --------------------------------------------------------
>
>                 Key: AS7-2703
>                 URL: https://issues.jboss.org/browse/AS7-2703
>             Project: Application Server 7
>          Issue Type: Sub-task
>          Components: Clustering, JPA / Hibernate
>            Reporter: Scott Marlow
>            Assignee: Scott Marlow
>             Fix For: 7.1.0.Final
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list