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
本文介绍企业JavaBeans (EJB) 如何与WebLogic Server应用程序中的其他组件及客户端进行交互。EJB可以被服务器端或客户端对象访问,如servlets、Java应用程序、其他EJB、applets和非Java客户端。WebLogic Server自动生成EJB的远程实现,除非EJB仅具有本地接口。所有EJB必须使用Java Naming and Directory Interface (JNDI)指定环境属性。

2175

被折叠的 条评论
为什么被折叠?



