-
1. Re: transient and passivation
pmuir Mar 26, 2009 1:51 AM (in response to eigenbrodtm)Currently we don't reinject fields after activation, though I kind of think we should. I'll try to find out why that note is in the spec, as to me it seems clearcut that we should perform injection after activation for transient injectable fields.
-
2. Re: transient and passivation
gavin.king Mar 29, 2009 9:31 PM (in response to eigenbrodtm)Well, the problem is that it can't be made to work for constructor injection.
-
3. Re: transient and passivation
gavin.king Mar 29, 2009 9:33 PM (in response to eigenbrodtm)
I turns out beeing serializable is a strict requirement for session scoped webBeans but wasn't for session scouped JSF beans.Serializability is a strict requirement for anything you put in the HttpSession. Unfortunately, this requirement is not enforced upfront by some web containers and is apparently not validated by your JSF implementation.
It's much better that web beans does actually validate these things and auto-detects your programming errors, right?
-
4. Re: transient and passivation
eigenbrodtm Mar 30, 2009 9:32 AM (in response to eigenbrodtm)I agree failing at deployment time is much better thant failing at a later time.
About reinjecting transitive fields: I thinks this is really needed. I understand it can't be done for Constructor parameters but having it work for injected fields and not for Constructor is still better then having it for non of both.
By the way I've to say I'm very happy with the fast, friendly and helpfull responses in this forum. Despite the fact that its not final playing with jsr299 / Webbeans is really fun.