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
"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 :
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
__
"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
"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
|
"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
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
_
"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
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
___
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
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
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
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
___
13 matches
Mail list logo