1 Reply Latest reply on Aug 7, 2003 12:26 AM by Bernd Zeitler

    PooledInvoker question

    Alejandro Otero Friere Newbie

      I like to know what is the function of this MBean.
      A part from taht I like to know what's the meaning of MaxPoolSize and ClientMaxPoolSize in that MBean.

      The company bought the official documentation, Can I get this info from it?.

      Regards.

        • 1. Re: PooledInvoker question
          Bernd Zeitler Expert

          Quote out of the API doc:

          * This invoker pools Threads and client connections to one server socket.
          * The purpose is to avoid a bunch of failings of RMI.
          *
          * 1. Avoid making a client socket connection with every invocation call.
          * This is very expensive. Also on windows if too many clients try
          * to connect at the same time, you get connection refused exceptions.
          * This invoker/proxy combo alleviates this.
          *
          * 2. Avoid creating a thread per invocation. The client/server connection
          * is preserved and attached to the same thread.

          * So we have connection pooling on the server and client side, and thread pooling
          * on the server side. Pool, is an LRU pool, so resources should be cleaned up.

          The invoker instance on client AND server side (stub and skeleton) has its own connection pool, which maximum size can be configured here.

          Greetings,
          Frito