Defining a Business Method

See Also

A business method is a method inside an enterprise bean that performs some function and is available for any clients of the bean.

To define a business method for an enterprise bean:

  1. Open the bean class in the Source Editor.
  2. Right-click anywhere in the Source Editor and choose Insert Code > Add Business Method.
  3. In the Add Business Method dialog box, define the method signature:
    1. Name the method.
    2. Specify the return type.
    3. Specify the method parameters in the Parameters tab.
    4. Specify the exceptions that the method throws in the Exceptions tab.
  4. Specify whether to add the business method to the local interface, remote interface, or both.
  5. Click OK to create the method.

    The IDE adds the method signature to the interfaces and the method body to the bean class.

  6. Edit your new business method.

Notes:

See Also
About Business Methods
Creating an Enterprise Bean
Defining a Finder Method
Defining a Select Method

Legal Notices