When the RMI-IIOP protocol or similar distribution protocols are used, the client communicates with the enterprise bean using stubs for the server-side objects (Figure EJB.13-1). The stubs implement the home and remote interfaces. Figure EJB.13-1. Location of EJB Client Stubs
The communication stubs used on the client side are artifacts generated at enterprise bean's deployment time by the EJB container provider tools. The stubs used on the client are standard if the container uses RMI-IIOP as the distribution protocol; the stubs are container-specific otherwise . |