1 Reply Latest reply on Aug 25, 2004 9:24 AM by Darran Lofthouse

    How to avoid multiple instances of ejb ?

    Henk Schets Newbie


      I have this system :
      - a jms message is sent
      - a mdb receives and calls a method on a stateless session bean A
      - A does his work, but it takes a while
      - while A is still busy, a new message is sent and received by the mdb who calls again the same method.

      How can I avoid that another stateless session bean is being created and that the two processes are done simultaneously ? This process should only be running once and not concurrently.

      Any ideas ?