2 Replies Latest reply on Feb 4, 2004 4:51 PM by bill.burke

    "Intercepting interfaces": is it possble with JBossAOP ?

    malbari

       

      "malbari" wrote:
      "malbari" wrote:
      Is it possible to intercept calls that have as a target a specific interface i.e. all classes that implement such that interface ?

      Let's assume for example that I need to intercept all calls to HttpSession, let's say methods setAttribute and removeAttribute. Each application server have its own implementation of HttpSession (with is an Interface).

      I can discover the implementation only at runtime, with is too late for my needs, and also force my jboss-aop.xml configuration to be application server specific.

      Any idea ?


        • 1. Re:
          marc.fleury

           

          "marc fleury" wrote:
          I don't know that we can do that today. However if what you are looking for in your setAttribute thing is finegrained session replication I recommend you look at JBoss Cache which implements such an algorythm under the covers


          • 2. Re:
            bill.burke

            We have no way currently of saying, intercept classes of instanceof Serializable for instance.

            It is on the todo list.

            Bill