Home Interface Business Methods

EJB 1.1 allowed the declaration of create and finder methods for an entity bean in its home interface and business methods in its remote interface. Because static methods aren’t allowed in an EJB, this meant that a business method could only be executed by invoking it on a particular entity object through its remote interface. Business methods related to a bean class but independent of a particular entity instance were best implemented as session bean methods that acted on the entities involved.

EJB 2.0 allows you to implement business methods within a bean class that are independent of a particular entity object. This still doesn’t involve declaring static methods in the component interface though. Instead, you ...

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.