2 Replies Latest reply on Nov 9, 2003 11:23 PM by normal

    ejb and thread

    normal

      I know that the ejb container provides mechanism for ejb synchronization, and shouldn't create thread in ejb for that thread is out of control of container. But conside the rmi and jms, it is probable that they use threads, while they are carefully coding and is safe to the container, so we can use them in ejb.
      So can I get the conclusion that we can use thread in ejb if it is safe?
      Now I deploy a multi-thread toolkit as mbean in jboss, and use it directly in ejb. All of them seemed running correctly. But I really want to know whether my solution is right.