O'Reilly logo

Special Edition Using Enterprise JavaBeans™ 2.0 by Brian Keeton, Chuck Cavaness

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required