Adding an Operation to an EJB Interface

You can add an operation to an EJB interface from the interface property sheet or from the Bean class property sheet using the Add button in the Operations page.

When you add an operation to an interface, an implementation operation is automatically created in the Bean class because the interface operation has a linked method. This ensures operation synchronization (see Understanding Operation Synchronization).

  1. Open the Bean class property sheet and click the Operations tab.
  2. Click the Add... tool and select the required EJB operation from the list.

    The requested operation is created at the end of the list of operations in the Bean class property sheet, and you can also verify that the new operation is displayed in the interface operation list.