I admit I didn't have to make it work using a marker annotation, but I needed the annotation as argument, so this worked.
I admit I didn't have to make it work using a marker annotation, but I needed the annotation as argument, so this worked: @Around("@annotation(foo)") public Object invoke(ProceedingJoinPoint invocation, Foo foo) throws Throwable But.. note that @Transactional also starts a session if one isn't started, so perhaps you don't really need that. Update: if your beans are defined in the child context, then the aop configuration of the parent context does not affect them. The parent context does not see the child context, and your x-servlet.
Xml is a child context.
If I change my method signature to public Object processAround(ProceedingJoinPoint pjp, OpenSession openSession) throws Throwable, I get the exception: "Caused by: java.lang. IllegalArgumentException: error at ::0 formal unbound in pointcut ". – Erik Apr 5 at 11:47 @Erik - but also change the @annotation(foo) - so no FQN there, just the param name.
– Bozho Apr 5 at 11:49 Okay, now the program compiles, but still, the aspect is not invoked. Is there some kind of logging/debugging that one could use to see whats going on? – Erik Apr 5 at 12:05 I found the solution, see my edit – Erik Apr 5 at 12:14 @Erik see updated.
– Bozho Apr 5 at 12:20.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.