3 Replies Latest reply on Feb 13, 2006 9:39 AM by Börje Jonsson

    Concurrent call to the same sessionbean

    Börje Jonsson Newbie


      If i have the following code:

      ReaderHome home = (Home) PortableRemoteObject.narrow(o, ReaderHome.class);
      Reader rd = home.create();

      The client then retains a reference to the remote interface, rd.
      Then it makes several concurrent calls (from different threads) to rd.readRates().

      Does these calls get serialized to the same sessionbean instance?

      Do i have to call home.create() for every call to get concurrency at all?

      He reason i ask is that we have an application where the client can be located many router hops away from the server and we have still have to handle several thousand calls every minute. To avoid one more call is seen as nessary for performance.