0 Replies Latest reply on Oct 1, 2001 3:15 PM by Dan Ciarniello

    multiple simultaneous client access to entity bean

    Dan Ciarniello Newbie

      I am trying to get a handle on what the behaviour of an entity bean is supposed to be when multiple clients are trying to simultaneously access a given instance. I'm wondering what the behaviour should be when the clients access different methods of the instance and when they all attempt to access the same method.

      Tests I've run with JBoss show that if say three clients access the same method of a given instance, it is possible for all three to enter the method before leaving the method. Also, it is possible that they don't necessarily leave the method in the same order that they entered the method. This seems to be a serious problem to me.

      I was under the (probably mistaken) impression that this was not allowed and that only one thread at a time was allowed access to a given method if not to a given instance.

      I would appreciate it if someone could enlighten me as to the correct behaviour.

      Thanks,
      Dan.