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

Mark Struberg (JIRA) jira-events at lists.jboss.org
Mon Mar 14 18:52:45 EDT 2011

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

Mark Struberg commented on WELD-867:


To clarify this issue a bit, the problem is not that Beans are not serializable (this could be worked around by using the passivationId) but that they will get stored in CreationalContexts which is not serializable anymore afterwards. So either make the Beans serializable, or also use the passivationId in your CreationalContext impl.

> 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
>    Affects Versions: 1.1.0.Final
>            Reporter: Gerhard Petracek
>            Priority: Blocker
>             Fix For: 1.2.0.CR1
> 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