Search:

Type: Posts; User: patniemeyer; Keyword(s):

Search: Search took 0.01 seconds.

  1. Replies
    13
    Views
    11,024

    For the sake of symmetry you can also declare two...

    For the sake of symmetry you can also declare two AuthenticationProcessingFilter beans (one for each area) and then neuter the one in the declarative http section like this:

    ...
  2. Replies
    12
    Views
    4,581

    I'm just wondering if there has been any progress...

    I'm just wondering if there has been any progress on this front (updating Acegi for Spring 2.x). Unfortunately the work I did was for a closed project, so in order to contribute it I'd have to...
  3. Replies
    12
    Views
    4,581

    The solution...

    The solution that I eventually found was to go ahead and write a Spring 2.0 aspecj style aspect that implements the Acegi AbstractSecurityInterceptor. The pointcut refers to the @Secured annotation...
  4. Replies
    12
    Views
    4,581

    So, to recap - If I try to mix the old style...

    So, to recap - If I try to mix the old style acegi method interceptor / autoproxy bean factory with the new style declarative transactions and aspectj autoproxy things don't work. They work...
  5. Replies
    12
    Views
    4,581

    Ah. Yes, my problem seems to be in how to mix...

    Ah. Yes, my problem seems to be in how to mix the two. I think the docs explicitly warn not to mix the aspectj-autoproxy and the explicit aop config...


    thanks,
    Pat
  6. Replies
    12
    Views
    4,581

    Well, actually this looks promising. Is your...

    Well, actually this looks promising. Is your logging component an aspectj advisor or an AOPAlliance method interceptor?


    Pat
  7. Replies
    12
    Views
    4,581

    Acegi with Spring 2.0 aop config?

    I am currently using Spring 2.0 with the <aop:aspectj-autoproxy> and <tx:annotation-driven> transactions. I have been able to get acegi method interception working by using an old style autoproxy...
  8. Replies
    2
    Views
    1,611

    I too was surprised to find that I could not put...

    I too was surprised to find that I could not put annotations on interface methods because Spring explicitly allow this for @Transactional. It's just not very Spring-like behavior to make interfaces...
  9. Yes, thanks. You might want to confirm that your...

    Yes, thanks. You might want to confirm that your code works with 2.0 RC4. The situation appeared for me in just the final 2.0 release.

    That might help narrow it down.


    Pat
  10. With 2.0: Mixing @Transactional and custom annotation fails...

    I have some methods that are annotated with @Transactional and my own spring AOP annotation. After upgrading to Spring 2.0 I get the following exception regarding argument binding. I have seen...
  11. Replies
    0
    Views
    711

    Problem mixing and ...

    There seems to be an issue in mixing the declarative transactions with aspectj aop support:

    <tx:annotation-driven/>
    <aop:aspectj-autoproxy/>

    I have a logging aspect that uses a...
  12. Replies
    3
    Views
    946

    Upgrading to the Aspectj 1.5.2 libs solved the...

    Upgrading to the Aspectj 1.5.2 libs solved the problem for me.

    thanks,
    Pat
  13. Replies
    3
    Views
    946

    that should have read: @Around(...

    that should have read:

    @Around( "@annotation(myAnnotation)" )
    public Object doSomething(
    ProceedingJoinPoint pjp, MyAnnotation myAnnotation ) { }


    Pat
  14. Replies
    3
    Views
    946

    Access to annotation in @Around?

    Is it possible to get access to the annotation used in an @Around pointcut? I would have expected this to work:

    @Around("@annotation("myAnnotation")
    public Object doSomething(...
  15. answers...

    Ok, after a little experimentation I think I have the answer.

    Do *not* use the <tx:annotation-driven>. Instead specify <tx:advice> and refer to that in an <aop:config> block to govern which...
  16. @Transactional with multiple transaction managers?

    I'd like to use annotation based transactions with hibernate as described in 2.0, however I have more than one session factory and consequently more than one transaction manager. Obviously I'd have...
Results 1 to 16 of 16