Domanda

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.

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top