is the SessionScoped annotation from javax.enterprise.context ?<div><br><div class="gmail_quote">On Mon, Dec 20, 2010 at 10:05 PM, Sebastian E. Ovide <span dir="ltr">&lt;<a href="mailto:sebastian.ovide@gmail.com">sebastian.ovide@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi All,<div><br></div><div>I have just started a new project using the maven  archetype weld-jsf-jee-minimal</div><div>

<br></div><div>I have a Bean which has a property:</div><div><br></div><div><div>    @Inject @TodoInotherway private TodoSrv todoService;</div>

<div><br></div><div>If I annotate the bean with @ManagedBean the injection fails and todoService will be always null.. If I annotate the Bean with @Named, the property is injected correctly but the Bean is instantiated several times for each request even if it is annotated as @SessionScoped and therefore all it&#39;s properties are recreated... (with @ManageBean it saves the properties for the whole session)</div>



<div><br></div><div>Is it a bug ?</div><div><br></div><div>any ideas ?</div><div><br></div><div>   </div><br>-- <br>Sebastian E. Ovide<br><br><br><br>
</div>
<br>_______________________________________________<br>
weld-dev mailing list<br>
<a href="mailto:weld-dev@lists.jboss.org">weld-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/weld-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/weld-dev</a><br></blockquote></div><br><br clear="all"><br>-- <br>Raphael Lacerda<br>(61) - 8148-6737<br>

<br><a href="mailto:raphael.lacerda@caelum.com.br">raphael.lacerda@caelum.com.br</a><br>Caelum Brasília - (61) 3039-4222<br>Caelum | Ensino e Inovação<br><a href="http://www.caelum.com.br/">http://www.caelum.com.br/</a><br>


</div>