Core Technologies

Enterprise JavaBeans use several key technologies. Many of these technologies are used behind the scenes—invisible to most developers. The three technologies that are in the forefront of EJB development are RMI, JDBC, and JNDI.

The Remote and Home interfaces for an EJB must be RMI interfaces. Every remote method must be declared as throwing java.rmi.RemoteException. In addition, your remote methods must have return types and parameters that are compatible with RMI. The main thing to remember when you pass objects back and forth with RMI is that the objects must implement the java.io.Serializable interface.

If you use Container Managed Persistence (CMP), there's a chance you won't need to use JDBC at all. Odds are, however, that ...

Get Special Edition Using Java™ 2 Enterprise Edition 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.