2 Replies Latest reply on Jan 19, 2006 6:31 AM by Stefan Kuehn

    Deploymentdescriptor for user defined client side intercepto

    Stefan Kuehn Newbie

      Hi!

      Can anyone post a sample deployment descriptor (part of) for a clientside interceptor, where you have added an interceptor of your own?


      I have written an tried out a container interceptor, but that doesn't solve my problem.

      Here ist the interesting part of the deployment descriptor for my container interceptor:

      <container-configurationextends="Standard Stateful SessionBean">
       <container-name>P24EntryBeanContainer</container-name>
       <call-logging>true</call-logging>
       <invoker-proxy-binding-name>stateful-rmi-invoker</invoker-proxy-binding-name>
       <container-interceptors>
       <interceptor>info.pompadour.p24.interceptor.SyncInterceptor</interceptor>
       ...


      The SyncInterceptor is my interceptor, that sync the access to my statefull session bean...on the "server side"... Of course that isn't what i want...



      When setting up a client interceptor...
      1. What does the deployment descriptor look like?
      2. Do i have to use the "extends=" syntax as with the container interceptor?
      3. What base class must my interceptor implement?
      The org.jboss.ejb.plugins.AbstractInterceptor?
      As in my container interceptor:
      public class SyncInterceptor extends org.jboss.ejb.plugins.AbstractInterceptor {
       ...
       }



      I have read the dokumentation, but i found no sample how to add an interceptor of your own. Nither client nor container interceptor.
      (i case i havent overssen it of course)

      I'd appreciate any help.