Chapter 14 Working with Java


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 section Understanding operation synchronization

Steps To add an operation to an EJB interface:

  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 dropdown listbox.
  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 appears in the interface operation list.
  6. Click OK.

 


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