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

    Deploymentdescriptor for user defined client side intercepto

    stefankuhn

      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.



        • 1. Re: Deploymentdescriptor for user defined client side interc
          amit.bhayani

          Client interceptor goes in <invoker-proxy-binding>

          For ex

          <invoker-proxy-binding>
          my-invoker
          <invoker-mbean>jboss:service=invoker,type=http</invoker-mbean>
          <proxy-factory>org.jboss.proxy.ejb.ProxyFactory</proxy-factory>
          <proxy-factory-config>
          <client-interceptors>

          org.jboss.proxy.ejb.HomeInterceptor
          org.jboss.proxy.SecurityInterceptor
          org.jboss.proxy.TransactionInterceptor
          org.jboss.invocation.InvokerInterceptor


          org.jboss.proxy.ejb.StatelessSessionInterceptor
          com.bom.wom.MyClientInterceptor
          org.jboss.proxy.SecurityInterceptor
          org.jboss.proxy.TransactionInterceptor
          org.jboss.invocation.InvokerInterceptor

          </client-interceptors>
          </proxy-factory-config>
          </invoker-proxy-binding>


          where MyClientInterceptor extends org.jboss.proxy.Interceptor

          • 2. Re: Deploymentdescriptor for user defined client side interc
            stefankuhn


            Thank you very much!

            I love you all! :-)

            By the way, i found some Hints in the doc too...