EJB3 Local and Remote interfaces

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

    You use the remote interfaces, but you make a lookup using JNDI (that's how i'd do it), this way you find the instance of the EJB in the server and can use it in your web application.

    Although you still need a jar with the EJB interfaces in the web application project.

    EDIT and I agree with JB Nizet, why would you want the WAR outside the EAR?

提交回复
热议问题