3 Replies Latest reply on Aug 14, 2007 12:08 PM by alessandro_rizzi

    How to trace remote calls client-side

    alessandro_rizzi

      I have a client-server application (developed with JWS, but this is not meaningfull) and I would like to trace, for debug pourpose each remote method invocation (from client to server, not from server to server) ... just to know how many remote calls are made in each client event.

      The application is very big and developed by many programmers, so I cannot do something at code level, but I'm looking for something at configurarion level.

      I've tried to add something like:
      org.jboss.ejb.Container.level = FINEST
      org.jboss.ejb.level = FINEST
      org.jboss.level = FINEST
      org.jboss.proxy.ClientContainer.level = FINEST
      org.jnp.level = FINEST

      in logging.properties of my JRE, but I see nothing on log files.

      I'm using JBoss 3.2.5 (but I can try also JBoss 4.0.4).

      Any suggestion will be greatly appreciated

      Regards
      Alessandro Rizzi

        • 1. Re: How to trace remote calls client-side
          waynebaylor

          I'm not 100% sure about this, but you might be able to add an interceptor to the remote interfaces and do logging there.

          • 2. Re: How to trace remote calls client-side
            alessandro_rizzi

             

            "waynebaylor" wrote:
            I'm not 100% sure about this, but you might be able to add an interceptor to the remote interfaces and do logging there.


            Thanks.
            I knew this was possible ... but I'm far away from knowing how. Anyone has do something similar, or has any suggestion?

            I know only that I shoud add the incerceptor class in some JBoss xml (jboss-service.xml I guess) and that I should create a class that implemenst some interfaces ... any more datails will be nice :)

            Bye
            Alessandro

            • 3. Re: How to trace remote calls client-side
              alessandro_rizzi

              Found it ... it was quite easy.

              If anyone needs, I'll explain:

              The file to modify is standardjboss.xml under the conf folder.

              Find the lines like this:

              <interceptor call-by-value="false">org.jboss.invocation.InvokerInterceptor

              and change the class with some class made by you which extends the class above (I suppose this is not required, but it's the easiest way)

              Then you simply have to override the Invoke method ... and everything works.

              Bye