I study EJB, so far I have read that multithreading is not allowed in EJB'S, because it is the container that should take care of thread safety and allow the developer to focus only on business logic, so basically this means that EJB guarantees that there is only one thread has access to a method at the same time in a bean session.
What happens when many users have access to the same method in EJB? Is the container serializing acceses or creating different instances of a bean, one per thread?
Can someone explain to me what politics is? I'm also a bit confused why, if multithreading is not allowed, so we cannot create our own threads, why do we have this @Asynchronous annotation?
source share