1

i need some explanation about stateful session bean and concurrent access. is multi-threaded access to a stateful session bean instance is allowed?

Thanks.

Moam
  • 176
  • 2
  • 16
  • [This answer](http://stackoverflow.com/a/1935476/778118) seems relevant. – jahroy Apr 06 '14 at 01:03
  • @BheshGurung - I believe that's true for `EJB 3.1` but not `EJB 3.0`. See [this answer](http://stackoverflow.com/a/1935476/778118). – jahroy Apr 06 '14 at 01:10
  • 1
    with ejb 3.1 : clients are allowed to make concurrent calls to a stateful session object and the container is required to serialize such concurrent requests. Note that the container never permits multi-threaded access to the actual stateful session bean instance. so, if a method of stateful bean is executed and a second call to the same method comes, this method have to wait until the first call is processed. right? – Moam Apr 06 '14 at 01:16
  • @Moam Yes, that's right. – Brett Kail Apr 07 '14 at 00:27

0 Answers0