yes, completely agree. Thus I marked our CallingBusinessInConstructorTest with @Ignore. If other also think that this should not be allowed (or at least it doesn't have to be supported) - then I'd say we remove this test completely.
LieGrue, strub --- Joseph Bergmark <[email protected]> schrieb am Di, 9.2.2010: > Von: Joseph Bergmark <[email protected]> > Betreff: Re: interceptors in constructors > An: [email protected] > Datum: Dienstag, 9. Februar 2010, 19:52 > I think I agree with Eric here. > Calling another method in the same class > from inside of the constructor wouldn't be the same as > calling it on a > contextual instance. You wouldn't expect the same > services to be added > (Decorator & Interceptors for example). > > Sincerely, > > Joe > > On Tue, Feb 9, 2010 at 1:37 PM, Eric Covener <[email protected]> > wrote: > > > On Tue, Feb 9, 2010 at 12:17 PM, Mark Struberg <[email protected]> > wrote: > > > As far as I read in the EJB interceptors spec, > constructors may not get > > intercepted. The question is if methods called within > the constructors may > > have to become intercepted. Afaik common sense is that > this is not really > > defined and shall not be used. > > > > Would we say those are not invocations via a > contextual reference and > > are thus not intercepted? > > > > -- > > Eric Covener > > [email protected] > > > __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com
