Re: Need to switch to subclassing?

2010-05-11 Thread Mark Struberg
Gurkan, I obviously DO call a method of a bean instance. So this scenario is perfectly valid from the spec perspective. LieGrue, strub --- Gurkan Erdogdu gurkanerdo...@yahoo.com schrieb am Di, 11.5.2010: Von: Gurkan Erdogdu gurkanerdo...@yahoo.com Betreff: Re: Need to switch to subclassing

Re: Need to switch to subclassing?

2010-05-11 Thread Gurkan Erdogdu
This will also not work on EJB containers. For example, in EJB Hello @Interceptors(MyInterceptor.class) public Hello implemenet IHello{ public void method1(){ method2(); } public void method2(){ ... } } @Local public interface IHello{

Re: Need to switch to subclassing?

2010-05-11 Thread Gurkan Erdogdu
Call on proxy instance not actual bean instance. From: Mark Struberg strub...@yahoo.de To: dev@openwebbeans.apache.org Sent: Tue, May 11, 2010 9:07:20 AM Subject: Re: Need to switch to subclassing? Gurkan, I obviously DO call a method of a bean instance. So

Re: Need to switch to subclassing?

2010-05-11 Thread Mark Struberg
, Gurkan Erdogdu gurkanerdo...@yahoo.com wrote: From: Gurkan Erdogdu gurkanerdo...@yahoo.com Subject: Re: Need to switch to subclassing? To: dev@openwebbeans.apache.org Date: Tuesday, May 11, 2010, 6:11 AM This will also not work on EJB containers. For example, in EJB Hello @Interceptors

Re: Need to switch to subclassing?

2010-05-11 Thread Gurkan Erdogdu
http://openejb.979440.n4.nabble.com/Possible-OPENEJB-Bug-with-Interceptors-td982087.html From: Mark Struberg strub...@yahoo.de To: dev@openwebbeans.apache.org Sent: Tue, May 11, 2010 9:22:11 AM Subject: Re: Need to switch to subclassing? I could not find

Re: Need to switch to subclassing?

2010-05-11 Thread Gurkan Erdogdu
@openwebbeans.apache.org Sent: Tue, May 11, 2010 9:22:11 AM Subject: Re: Need to switch to subclassing? I could not find this explicitly stated in the EJB spec neither - so maybe OpenEJB needs a fix too? :D Nah, just like to know what the 299 spec intends. Such things should work the same in Weld

Re: Need to switch to subclassing?

2010-05-11 Thread Mark Struberg
. Thanks; --Gurkan From: Mark Struberg strub...@yahoo.de To: dev@openwebbeans.apache.org Sent: Tue, May 11, 2010 9:22:11 AM Subject: Re: Need to switch to subclassing? I could not find this explicitly stated in the EJB spec neither - so maybe OpenEJB

Re: Need to switch to subclassing?

2010-05-11 Thread James Carman
--- On Tue, 5/11/10, Gurkan Erdogdu gurkanerdo...@yahoo.com wrote: From: Gurkan Erdogdu gurkanerdo...@yahoo.com Subject: Re: Need to switch to subclassing? To: dev@openwebbeans.apache.org Date: Tuesday, May 11, 2010, 6:47 AM Such things should work the same in Weld, CanDI, OWB and all other JSR

Re: Need to switch to subclassing?

2010-05-11 Thread Joseph Bergmark
I don't have Gurkan's experience in the spec, but this seems to be what section 7.2 is all about. When do you treat a method call as a business method invocation, and how does that affect things like Decorators and Interceptor invocation. The only wording that hints this shouldn't work when

Re: Need to switch to subclassing?

2010-05-11 Thread Mark Struberg
...@gmail.com schrieb am Di, 11.5.2010: Von: Joseph Bergmark bergm...@gmail.com Betreff: Re: Need to switch to subclassing? An: dev@openwebbeans.apache.org Datum: Dienstag, 11. Mai, 2010 15:42 Uhr I don't have Gurkan's experience in the spec, but this seems to be what section 7.2 is all about

RE: Need to switch to subclassing?

2010-05-10 Thread Mario Ivankovits
Hi! I'd definitely would go the subclassing route. The problem you describe here is one of my biggest concerns of how Spring's AOP works. This is just not real AOP - it is dynamic proxy creation - not more, not less. An average developer will never be able to figure out what is going wrong