blackjack
blackjack

Reputation: 1131

What is Remote EJB?

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.

Upvotes: 1

Views: 1244

Answers (1)

cmd
cmd

Reputation: 11841

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.

Upvotes: 2

Related Questions