[weld-issues] [JBoss JIRA] Commented: (WELD-867) bean implementations should be serializable

Stuart Douglas (JIRA) jira-events at lists.jboss.org
Mon Mar 21 01:10:45 EDT 2011


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

Stuart Douglas commented on WELD-867:
-------------------------------------

I don't think the beans should be marked as Serializable.

The correct approach is to use the passivationId, actually Serializing the beans will only cause problems/bugs (not to mention being very inefficient). 

> bean implementations should be serializable
> -------------------------------------------
>
>                 Key: WELD-867
>                 URL: https://issues.jboss.org/browse/WELD-867
>             Project: Weld
>          Issue Type: Feature Request
>          Components: Built-in beans, Clustering, Scopes & Contexts
>    Affects Versions: 1.1.0.Final
>            Reporter: Gerhard Petracek
>             Fix For: 1.2.0.Beta1
>
>
> for custom scope implementations it's required that beans are serializable.
> -> one of the following classes should implement java.io.Serializable
> https://github.com/weld/core/blob/master/impl/src/main/java/org/jboss/weld/bean/RIBean.java
> https://github.com/weld/core/blob/master/impl/src/main/java/org/jboss/weld/bean/AbstractBean.java
> https://github.com/weld/core/blob/master/impl/src/main/java/org/jboss/weld/bean/ManagedBean.java

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


More information about the weld-issues mailing list