Hi Thomas!
NormalScoped beans (@SessionScoped, @RequestScoped, etc. Basically all scopes other than @Dependent) do not directly inject the contextual instances but only the contextual references (the proxies). Thus we only serialize the proxy in that case. On deserialisation, the proxy knows the correct contextual instance and will resolve it on the next invocation. LieGrue, strub >________________________________ >From: Thomas Andraschko <[email protected]> >To: "[email protected]" <[email protected]> >Sent: Friday, October 7, 2011 2:21 PM >Subject: How does OWB replicate/serialize beans? > > >Hi, > >If i have a @ViewScoped bean (possible with CODI) with injected beans, will >this injected beans also be serialized and replicated? >So my services and dao's must all be serializable? >Are the best practices available? > >Thanks and best regards >Thomas > >
