Chapter 13 Working with Java


Adding further interfaces and classes to the EJB

In addition to the bean class and remote and home interfaces defined on the EJB tab, you can link the following supplementary classes and interfaces to the EJB3:

You add these interfaces and classes to the EJB3 component via the Interfaces and Classes tabs. For example:

Steps To add an <<EJBInterceptor>> interface to an EJB3:

  1. Open the property sheet of the EJB3 and click the Interfaces tab.
  2. Click the Create a New Object tool to create a new interface and open its property sheet.
  3. On the General tab, select <<EJBInterceptor>> from the list of stereotypes.
  4. Complete the remaining properties as required and then click OK to return to the EJB3 property sheet.

 


Copyright (C) 2007. Sybase Inc. All rights reserved.