I\'m very new to Java EE and I\'m trying to understand the concept of Local interfaces and Remote interfaces. I\'ve been told that one of the big advantages of Java EE is th
According to EJB Spec 3.2 an EJB can be either be local or remote. A business interface cannot be both local and remote at the same time.
@Local annotated beans can only be accessed if they are in the same application.
@Remote annotated beans can be accessed across different applications, residing in different jvms or across application servers.
So the important things to keep in mind are:
@Remote annotation, then all implemented interfaces are to be remote.@Local annotation is specified, then all implemented interface are assumed to be local.