1 Reply Latest reply on Jun 20, 2002 7:08 AM by Noel Hebert

    Is EJBHome thread-safe?

    Anwar Ludin Newbie

      Hi all,

      The EJBHomeFactory pattern is used to cache EJBHome handles and minimize lookups in the client application. However is it safe to use the cached EJBHome from multiple threads? Is thread-safety for EJBHomes vendor-specific? How does JBoss handle this?

      Regards,
      Anwar

        • 1. Re: Is EJBHome thread-safe?
          Noel Hebert Newbie

          Anwar,

          Hopefully this is all still relevent since you posted
          this query on 30 May and it is now 20 June!

          Anyway...

          It is my understanding that you can expect that any
          EJBHome object reference is thread-safe. After all there is only *one* EJBHome for any one EJB in the
          JNDI namespace.

          It makes sense that it *has* to be thread-safe since
          anyone, at anytime can execute for example, a create()
          method call on that same EJBHome.

          I may be wrong, but that is the way I understand it and
          I do not think that it is vendor specific.

          Cheers,

          Noel.