Figure 2-1 illustrates how EJBs typically relate to other components of a WebLogic Server application and to clients.
Figure 2-1 EJBs and Other Application Components
An EJB can be accessed by server-side or client-side objects such as servlets, Java client applications, other EJBs, applets, and non-Java clients.
Any client of an EJB, whether in the same or a different application, accesses it in a similar fashion. WebLogic Server automatically creates implementations of an EJB's home and business interfaces that can function remotely, unless the bean has only a local interface.
All EJBs must specify their environment properties using the Java Naming and Directory Interface (JNDI). You can configure the JNDI namespaces of EJB clients to include the home interfaces for EJBs that reside anywhere on the network—on multiple machines, application servers, or containers.
Most beans do not require a global JNDI name—specified in the jndi-name
and local-jndi-name
elements of weblogic-ejb-jar.xml
. Most beans reference to each other using ejb-link
s, as described in Using EJB Links .
Because of network overhead, it is more efficient to access beans from a client on the same machine than from a remote client, and even more efficient if the client is in the same application.
See Programming Client Access to EJBs for information on programming client access to an EJB.
reference :
http://e-docs.bea.com/wls/docs81/ejb/understanding.html#1128703