Results 1 to 3 of 3

Thread: AOP and DM Server 2.0.x

  1. #1
    Join Date
    Apr 2009
    Posts
    15

    Default AOP and DM Server 2.0.x

    I am developing a DM Server 2.0 based application (Spring 3.0.x).
    I am using Proxy based AOP in DM Server Bundles. (CGLib)

    I have defined an Aspect that acts on execution of all methods on a particular interface (say Intergace I) . Both Aspect and Interface are defined in a single Bundle (say Bundle A). If I define a class in Bundle A that Implements this interface I, then whenever the interface methods in that class is called, the aspect is invoked.

    How can I declare a class in another Bundle (say Bundle B) that implements the interface I (exported from Bundle A) and have the aspect invoked whener methods on class in Bundle B is executed ?

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    9

    Default

    Hi anoopps,

    I have a very similar problem in my current project: Aspect in bundle A and classes in other bundles which are adviced by the aspect. In this constellation the aspect is never called. Did you find a solution for this?

    Does anybody has a solution for this?

    Thanks in advance
    Harald

  3. #3
    Join Date
    Apr 2009
    Posts
    15

    Default Solution

    We move from Spring AOP to pure AspectJ with LoadTimeWeaving.
    Now it works across bundles.
    However in DM Server 2.0.0.M5 importing aspectj.weaver bundles is causing issues. I am looking into this.

Posting Permissions

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