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.

For more information on synchronization, see Understanding operation synchronization

  1. Double-click the Bean class to display the class property sheet.
  2. Click the Operations tab to display the Operations page.
  3. Click the Add button at the bottom of the page.
  4. Select the required EJB operation from the list.


  5. Click Apply.

    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.

  6. Click OK.