0

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?

Rodion Gorkovenko
  • 2,670
  • 3
  • 24
  • 37

1 Answers1

3

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

JB Nizet
  • 678,734
  • 91
  • 1,224
  • 1,255