I want to know what is really local and remote EJB. Is remote an EJB which is the same jar file ? Is remote an EJB which is in another JVM ? What is it anyway? If I have deployed two different EAR files in the same server domain do I need to lookup for EJBs in each other? Lookup is achieved through annotations ? I mean EJB 3.1.

有帮助吗?

解决方案

Remote EJBs are used in a distributed environment. The EJBs may run in one JVM, while their consumers run in another.

Local EJBs are used when you can guarantee that all consumers of the EJB are operating within the same JVM.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top