Hi<div><br></div><div>just to share my point of view on it (alread ydiscussed with Mark):</div><div><br></div><div>javadoc and spec both state this interface &quot;<span style="font-family:&#39;Times New Roman&#39;;font-size:medium;background-color:rgb(255,255,255)">Indicates that a custom implementation of </span><a href="http://docs.oracle.com/javaee/6/api/javax/enterprise/inject/spi/Bean.html" title="interface in javax.enterprise.inject.spi" style="font-family:&#39;Times New Roman&#39;;font-size:medium;background-color:rgb(255,255,255)"><code>Bean</code></a><span style="font-family:&#39;Times New Roman&#39;;font-size:medium;background-color:rgb(255,255,255)"> or </span><a href="http://docs.oracle.com/javaee/6/api/javax/enterprise/context/spi/Contextual.html" title="interface in javax.enterprise.context.spi" style="font-family:&#39;Times New Roman&#39;;font-size:medium;background-color:rgb(255,255,255)"><code>Contextual</code></a><span style="font-family:&#39;Times New Roman&#39;;font-size:medium;background-color:rgb(255,255,255)"> is passivation capable.</span>&quot;</div>

<div><br></div><div>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.</div><div><br></div><div>If it is not the case then this interface would be useless.</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">

Hi!<br>
<br>
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>
<br>
Which Bean&lt;T&gt; need to implement PassivationCapable?<br>
<br>
6.6.1 seem to indicate that only beans or passivating scopes need a PassivationCapable bean.<br>
<br>
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>


<br>
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>


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