[jboss-user] [JBoss/Spring Integration] - Re: AS5 @Spring injection failing

2009-02-13 Thread ALRubinger
My tests to intercept newInstance calls via new() show that the pointcut won't work this way. Perhaps what's needed is: http://www.jboss.org/jbossaop/docs/2.0.0.GA/docs/aspect-framework/misc/reflection.html The way @EJB, @Resource, etc works is that EJB3 looks for these and applies the logic a

[jboss-user] [JBoss/Spring Integration] - Re: AS5 @Spring injection failing

2009-02-13 Thread ALRubinger
"green804" wrote : I changed my app to use the @Interceptors, and everything is now working correctly. You're cheating by workaround. :D SFSB instances are created by class.newInstance, I'm doing some tests to see if AOP pointcuts to *->new(..) work this way. S, ALR View the original post :

[jboss-user] [JBoss/Spring Integration] - Re: AS5 @Spring injection failing

2009-02-13 Thread green804
I changed my app to use the @Interceptors, and everything is now working correctly. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4210066#4210066 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4210066 __

[jboss-user] [JBoss/Spring Integration] - Re: AS5 @Spring injection failing

2009-02-13 Thread ALRubinger
"ALRubinger" wrote : You've got a SFSB My eyes are lying to me. Sorry, you've clearly got @Stateless on there. S, ALR View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4210065#4210065 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mod

[jboss-user] [JBoss/Spring Integration] - Re: AS5 @Spring injection failing

2009-02-13 Thread ALRubinger
"green804" wrote : I had it under "Stateless Bean" because that's where it was in 4.2. Should I move it to "Intercepted Bean"? Does it matter where? Aha. You've got a SFSB, which is tied to domain "Stateful Bean". "Intercepted Bean" is a top-level parent (@see ). This is the pointcut |

[jboss-user] [JBoss/Spring Integration] - Re: AS5 @Spring injection failing

2009-02-13 Thread alesj
"green804" wrote : If I use the @Interceptors, does that mean I don't need all the stuff in the ejb3-interceptors file? Yes. But let's get to the bottom of this, so you'll be still able to use the old AOP way. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=421

[jboss-user] [JBoss/Spring Integration] - Re: AS5 @Spring injection failing

2009-02-13 Thread green804
If I use the @Interceptors, does that mean I don't need all the stuff in the ejb3-interceptors file? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4210062#4210062 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4210062 _

[jboss-user] [JBoss/Spring Integration] - Re: AS5 @Spring injection failing

2009-02-13 Thread alesj
"ALRubinger" wrote : Ales, what should the pointcut be do to the lifecycle | It should only apply to @Stateless, @Stateful and @MDB annotated classes. Not sure about the @Service. btw: green804, you can use EJB3's @Interceptors(SpringLifecycleInterceptor.class) View the original post : http

[jboss-user] [JBoss/Spring Integration] - Re: AS5 @Spring injection failing

2009-02-13 Thread green804
Sorry for that -- This is the pointcut View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4210060#4210060 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4210060 ___

[jboss-user] [JBoss/Spring Integration] - Re: AS5 @Spring injection failing

2009-02-13 Thread green804
I don't. I had it under "Stateless Bean" because that's where it was in 4.2. Should I move it to "Intercepted Bean"? Does it matter where? This is the pointcut View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4210058#421005

[jboss-user] [JBoss/Spring Integration] - Re: AS5 @Spring injection failing

2009-02-13 Thread ALRubinger
Do you have SpringInjectionInterceptor defined under the domain "Intercepted Bean" in ejb3-interceptors-aop.xml? If so, what's your pointcut? Ales, what should the pointcut be do to the lifecycle injection? S, ALR View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopi

[jboss-user] [JBoss/Spring Integration] - Re: AS5 @Spring injection failing

2009-02-13 Thread green804
Yes. That is exactly what is happening. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4210054#4210054 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4210054 ___ jboss-user mai

[jboss-user] [JBoss/Spring Integration] - Re: AS5 @Spring injection failing

2009-02-13 Thread alesj
You mean you get NPE when trying to use your bean, since it was never injected? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4210053#4210053 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4210053 ___