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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access