Enterprise JavaBeans (EJBs) and XML

In a way, Enterprise JavaBeans are the big brother to JavaBeans. Enterprise JavaBeans are to server-side Java what JavaBeans are to client-side Java. However, EJBs and JavaBeans are not parents, children, or ancestors of one another. The EJB 1.0 specification describes many things about EJB, but does not require that each and every visible property have appropriate getPropertyName and setPropertyName methods, as a JavaBean must.

So what is an Enterprise JavaBean, or as they are more commonly referred to, an EJB? An EJB is a component just like a JavaBean. However, it's a distributed component, distributed in the sense that when you access an EJB you are accessing a remote instance of a class locally. However, ...

Get XML Development with Java™ 2 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.