문제

Please help me understand @Stateless EJB 3 beans.

If I have a bean with two methods and pool size 1, could two clients have simultaneous access to this bean provided that they call different methods on it.

I feel that answer is "no" since ejb does not check whether methods are not linked internally. Is it correct?

도움이 되었습니까?

해결책

The answer is no because the spec guarantees that a given EJB instance is never called concurrently.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top