Declaring the Component Interface
As you saw earlier in Chapter 3, the client’s view of an entity or session bean is defined by the bean’s component interface, which consists of a local interface, a remote interface, or both. Clients don’t access your EJB classes directly, so any functionality you want to make available has to be exposed through the component interface. The methods you declare in a local or remote interface are commonly referred to as a bean’s business methods.
When you declare a remote interface, you must declare it to extend javax.ejb.EJBObject. Similarly, a local interface must extend javax.ejb.EJBLocalObject. As a bean provider, this requirement doesn’t affect you that much (unless you forget to do it) because you don’t ...
Get Special Edition Using Enterprise JavaBeans™ 2.0 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.