EJB3 Local and Remote interfaces

前端 未结 4 1452
野的像风
野的像风 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:32

    Remote interfaces can be called across applications, from everywhere within the application server as well as from outside, even from other hosts.

    So assume that you need remote (@Remote) interface. In EJB 3.1 you can use dependency injection.

提交回复
热议问题