EJB3 Local and Remote interfaces

前端 未结 4 1498
野的像风
野的像风 2021-02-07 02:23

I understood that Local interface is designed for clients in the same container\'s JVM instance and remote interface is designed for clients residing outside the EJB container\'

4条回答
  •  半阙折子戏
    2021-02-07 02:38

    Local interfaces are to be used in communication within the same application. It doesn't necessarily mean JVM.

    The point is: even within the same JVM instance, on the same server, two different applications cannot communicate using local interfaces (which means local and no-interface views).

    If you have a web component (WAR) as well as a business component (EJB-JAR) which is in the same application, the most intuitive and straightforward solution is to package them in one EAR or in one WAR (since Java EE 6).

提交回复
热议问题