JBoss Community

Are EJB3 session bean calls always in the same thread?

created by Brianna Satinoff in EJB3 - View the full discussion

Suppose you have a class like this:

 

 

public class MyEJB {
     
     @EJB
     public OtherEJBLocal other;
 
     public void callSomething() {
          other.callAnotherMethod();
     }
}

 

Will the method call on the second EJB necessarily run in the same thread as the initial call to MyEJB.callSomething() ?

Reply to this message by going to Community

Start a new discussion in EJB3 at Community