135
enterPrise Coda using Java ee
remote invocation, and local interfaces are used by clients for local invocation.
Business interfaces are identified as remote using the @Remote annotation, and
local interfaces are identified using the @Local annotation on the source code of
the business interface. e local business interface is optional (i.e., when the client
is accessing the EJB component using local invocation, it can directly invoke the
EJB component without using an interface). Enterprise clients like servlets and
managed beans are not required to have a business interface when they try to access
the enterprise bean component using local invocation. ey can access the bean
component using dependency injection, which refers the bean compon ...