Announcement Announcement Module
Collapse
No announcement yet.
AOP and DM Server 2.0.x Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


    • #3
      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.

      Comment

      Working...
      X