Stateless and Stateful Enterprise Java Beans

后端 未结 7 2084
我在风中等你
我在风中等你 2020-11-28 17:52

I am going through the Java EE 6 tutorial and I am trying to understand the difference between stateless and stateful session beans. If stateless session beans do not retain

7条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-28 18:09

    This thing happen because the container only has one bean instance in the pool that is being reused for all calls. If you run the clients in parallel you will see a different result because the container will create more bean instances in the pool.

提交回复
热议问题