dcsimg

Should synchronization primitives be used on bean methods?

Greg Boettcher

No. The EJB specification specifically states that the enterprise bean is not allowed to use thread primitives. The container is responsible for managing concurrent access to beans at runtime.