2.7. Enterprise JavaBean RMI

Enterprise JavaBeans are Java components that are designed to run in a distributed environment. EJBs communicate with one another, and with their clients, using an RMI scheme, just as other distributed objects do. From the previous section, you will have gathered that there are already well-developed APIs for Java RMI (which are not very different, no matter what underlying protocol we use): The RMI scheme used by EJBs is based firmly on the RMI/IIOP API. This means that clients will use a JNDI lookup() call to locate the EJB and get a stub on which it can make method calls. The stub marshalls the arguments and communicates with a skeleton, which carries out the real method invocation. The use of stubs and skeletons, ...

Get Applied Enterprise JavaBeans™ Technology now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.