Results 1 to 2 of 2

Thread: Advising non spring-managed Beans

  1. #1
    Join Date
    May 2009
    Posts
    3

    Default Advising non spring-managed Beans

    Hi

    We have an application which uses JSF but doesnt have it integrated with Spring. Could you let me know how to integrate spring AOP with JSF ?We want to enable tracking and profiling aspect for the managed beans ad other components.


    Thanks

  2. #2
    Join Date
    Jul 2010
    Location
    Venice, Italy
    Posts
    709

    Default

    If you integrate JSF with Spring the proper way (as explained in the reference documentation), your managed beans will also be Spring beans, so Spring AOP will be applied also to those beans.

    If you don't integrate (and I can't possibly think of a reason why you shouldn't want to do that) then your only option is to use full-blown AspectJ (either ctw or ltw) because that overcomes Spring AOP's limitation of being applied only on Spring beans.

    But I REALLY advise to consider integration, it's a couple of lines changed in xml and you're good to go (and aop is not the only benefit if you choose this road).

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •