How frequently should I create an EntityManager?

后端 未结 3 942
陌清茗
陌清茗 2020-12-30 21:21

I have an EntityManagerFactory for which I can create one (or multiple) EntityManager instances. I\'m using a Servlet environment, and I\'ve got on

3条回答
  •  醉话见心
    2020-12-30 21:38

    we do one injected entity manager for each slsb, - and the slsb is itself accessed via a delegate, of which there is one per session, which looks up the local/remote interface. Using ejb3.0.

提交回复
热议问题