i took care of my words ;)<div><br></div><div>the javadoc speak about Bean&lt;?&gt;</div><div><br clear="all"><div><div><i>Romain Manni-Bucau</i></div><div><i>Twitter: <a href="https://twitter.com/rmannibucau" target="_blank">@rmannibucau</a></i></div>

<div><i>Blog: </i><a href="http://rmannibucau.wordpress.com/" target="_blank"><i>http://rmannibucau.wordpress.com/</i></a></div><div><i>LinkedIn: </i><font color="#0000ee"><i><u><a href="http://fr.linkedin.com/in/rmannibucau" target="_blank">http://fr.linkedin.com/in/rmannibucau</a></u></i></font></div>

<div><i><span style="background-color:rgb(255,255,255)">Github: </span><a href="https://github.com/rmannibucau" target="_blank">https://github.com/rmannibucau</a></i></div><div><br></div></div>
<br><br><div class="gmail_quote">2013/3/18 Mark Struberg <span dir="ltr">&lt;<a href="mailto:struberg@yahoo.de" target="_blank">struberg@yahoo.de</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
<br>
The question (once again) is whether the terminus &#39;bean&#39; means the Bean&lt;T&gt;, the Contextual Instance or the Contextual Reference.<br>
<br>
LieGrue,<br>
strub<br>
<br>
<br>
<br>
&gt;________________________________<br>
&gt; From: Romain Manni-Bucau &lt;<a href="mailto:rmannibucau@gmail.com">rmannibucau@gmail.com</a>&gt;<br>
&gt;To: Mark Struberg &lt;<a href="mailto:struberg@yahoo.de">struberg@yahoo.de</a>&gt;<br>
&gt;Cc: cdi-dev &lt;<a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a>&gt;<br>
&gt;Sent: Monday, March 18, 2013 7:52 PM<br>
&gt;Subject: Re: [cdi-dev] what Bean&lt;T&gt; implementations need to be PassivationCapable?<br>
<div class="HOEnZb"><div class="h5">&gt;<br>
&gt;<br>
&gt;Hi<br>
&gt;<br>
&gt;<br>
&gt;just to share my point of view on it (alread ydiscussed with Mark):<br>
&gt;<br>
&gt;<br>
&gt;javadoc and spec both state this interface &quot;Indicates that a custom implementation of Bean or Contextual is passivation capable.&quot;<br>
&gt;<br>
&gt;<br>
&gt;so a bean which doesn&#39;t impl it will not be passivation capable. From my understanding it means the proxy can&#39;t be serialized/unserialized without side effects.<br>
&gt;<br>
&gt;<br>
&gt;If it is not the case then this interface would be useless.<br>
&gt;<br>
&gt;<br>
&gt;Romain Manni-Bucau<br>
&gt;Twitter: @rmannibucau<br>
&gt;Blog: <a href="http://rmannibucau.wordpress.com/" target="_blank">http://rmannibucau.wordpress.com/</a><br>
&gt;LinkedIn: <a href="http://fr.linkedin.com/in/rmannibucau" target="_blank">http://fr.linkedin.com/in/rmannibucau</a><br>
&gt;Github: <a href="https://github.com/rmannibucau" target="_blank">https://github.com/rmannibucau</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;2013/3/18 Mark Struberg &lt;<a href="mailto:struberg@yahoo.de">struberg@yahoo.de</a>&gt;<br>
&gt;<br>
&gt;Hi!<br>
&gt;&gt;<br>
&gt;&gt;By catching an issue we have with the custom Bean&lt;T&gt; implementations provided by Spring Data,  I got aware of a possible issue with PassivationCapable.<br>
&gt;&gt;<br>
&gt;&gt;Which Bean&lt;T&gt; need to implement PassivationCapable?<br>
&gt;&gt;<br>
&gt;&gt;6.6.1 seem to indicate that only beans or passivating scopes need a PassivationCapable bean.<br>
&gt;&gt;<br>
&gt;&gt;But in this case: how does a container implement the NormalScope proxies for such a Bean? Consider we inject such a Contextual Reference of such a Bean&lt;T&gt; (which does _not_ implement PassivationCapable), e.g. MyDataRepository into a @SessionScoped bean. And now clustering kicks in and we propagate our @SessionScoped bean to another node.<br>


&gt;&gt;<br>
&gt;&gt;What happens with the proxy for MyDataRepository? How will it &#39;reconnect&#39; to the correct Bean&lt;T&gt; on the other side of the cluster? Imo this is only possible if all Bean&lt;T&gt; properly implement PassivationCapable.<br>


&gt;&gt;Or should we use the bean type + qualifiers to create a synthetic passivationId? Does this hold waters?<br>
&gt;&gt;<br>
&gt;&gt;LieGrue,<br>
&gt;&gt;strub<br>
&gt;&gt;<br>
&gt;&gt;_______________________________________________<br>
&gt;&gt;cdi-dev mailing list<br>
&gt;&gt;<a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a><br>
&gt;&gt;<a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br></div>