<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Look instead for passivation, you will find plenty.<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 1 Feb 2015, at 12:36, Antonio Goncalves &lt;<a href="mailto:antonio.goncalves@gmail.com" class="">antonio.goncalves@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi all,<div class=""><br class=""></div><div class="">I was reading the CDI 1.2 spec and couldn't clearly find the way serialization and scopes work. The only explicit sentence I found was :&nbsp;</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class=""><i class="">1.3.1. JSF example</i></div><div class=""><i class="">The @SessionScoped annotation defined in Section 2.4.1, “Built-in scope types” is a scope<br class=""></i></div><div class=""><i class="">type that specifies the lifecycle of instances of Login. <b class="">Managed beans with this scope must be</b></i></div><div class=""><i class=""><b class="">serializable.</b></i></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">The Weld documentation is a bit more explicit :&nbsp;</div><div class=""><br class=""></div><div class=""><div class=""><i class="">5.2. Built-in scopes</i></div><div class=""><i class=""><b class="">Managed beans with scope @SessionScoped or @ConversationScoped must be serializable</b>, since the container passivates the HTTP session from time to time.</i></div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">And in the Java EE Tutorial we find (<a href="http://docs.oracle.com/javaee/6/tutorial/doc/gjbbk.html" class="">http://docs.oracle.com/javaee/6/tutorial/doc/gjbbk.html</a>) :&nbsp;</div><div class=""><br class=""></div><div class=""><span style="font-family:Arial,Helvetica,FreeSans,Luxi-sans,'Nimbus Sans L',sans-serif;font-size:12px" class=""><b class=""><font class="">Beans that use session, </font><font color="#ff0000" class="">application</font><font class="">, or conversation scope must be serializable</font></b><font class="">, but beans that use request scope do not have to be serializable.</font></span><br class=""></div><div class=""><span style="font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif; font-size: 12px;" class=""><br class=""></span></div><div class=""><span style="font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif; font-size: 12px;" class=""><br class=""></span></div><div class=""><span style="font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif; font-size: 12px;" class="">This even made be doubt about the application scope ?!?</span></div><div class=""><span style="font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif; font-size: 12px;" class=""><br class=""></span></div><div class=""><span style="font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif; font-size: 12px;" class=""><br class=""></span></div><div class=""><span style="font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif; font-size: 12px;" class="">Any way, could we clarify this in the CDI spec ?</span></div><div class=""><span style="font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif; font-size: 12px;" class=""><br class=""></span></div><div class=""><br class=""></div>-- <br class=""><div class="gmail_signature"><div dir="ltr" class="">Antonio Goncalves <br class="">Software architect, Java Champion and Pluralsight author<br class=""><br class=""><a href="http://www.antoniogoncalves.org/" target="_blank" class="">Web site</a>&nbsp;|&nbsp;<a href="http://twitter.com/agoncal" target="_blank" class="">Twitter</a> |&nbsp;<a href="http://www.linkedin.com/in/agoncal" target="_blank" class="">LinkedIn</a>&nbsp;| <a href="http://pluralsight.com/training/Authors/Details/antonio-goncalves" target="_blank" class="">Pluralsight</a>&nbsp;|&nbsp;<a href="http://www.parisjug.org/" target="_blank" class="">Paris JUG</a>&nbsp;| <a href="http://www.devoxx.fr/" target="_blank" class="">Devoxx France</a></div></div>
</div></div>
_______________________________________________<br class="">cdi-dev mailing list<br class=""><a href="mailto:cdi-dev@lists.jboss.org" class="">cdi-dev@lists.jboss.org</a><br class="">https://lists.jboss.org/mailman/listinfo/cdi-dev<br class=""><br class="">Note that for all code provided on this list, the provider licenses the code under the Apache License, Version 2 (http://www.apache.org/licenses/LICENSE-2.0.html). For all other ideas provided on this list, the provider waives all patent and other intellectual property rights inherent in such information.</div></blockquote></div><br class=""></div></body></html>