Synchronization Premitives on EJB Methods

Q

Should synchronization primitives be used on overrided bean methods?

✍: Arjun Gund

A
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.

2009-11-05, 7287👍, 0💬