concept remote interface in category ejb

appears as: remote interface, remote interface, remote interfaces
EJB 3 in Action, Second Edition

This is an excerpt from Manning's book EJB 3 in Action, Second Edition.

Recall that the default interface type is local. While remote interfaces are very useful when they’re needed, they can be a serious performance killer if used otherwise. The issue is that if you accidentally use the @Remote annotation instead of the @Local annotation, you’ll still be able to transparently inject the remote EJB using @EJB as though it were a local EJB without realizing it. This is why it’s very important that you avoid the @Remote annotation unless it’s really needed.