Editing interfaces

You can edit method signatures graphically in the Method Properties dialog, or by editing CORBA IDL directly. Some method properties such as the transactional attribute and run-as mode properties are not defined in IDL. To configure these settings, you must display the Method Properties window.

NoteInterface and method name conventions Sybase recommends that you begin interface names with a capital letter, and method names with a lowercase letter.

StepsEditing methods in IDL

You define or edit method signatures by editing the CORBA IDL interface definition directly. Use this procedure if you are comfortable with CORBA IDL and prefer it to point-and-click interface editing.

  1. Highlight the icon for the interface of interest.

  2. Choose File | Edit IDL

  3. The IDL interface definition displays in the IDL Editor window.

  4. Make any changes, then choose File | Save. If the changes have introduced syntax errors, EAServer Manager displays the error text in a dialog box. Fix the errors, then try to save again.

  5. When you have made all changes and saved them, choose File | Exit.

StepsAdding methods graphically

  1. Highlight the icon for the interface of interest.

  2. Choose File | New Method.

  3. Enter a name for the method and click Create New Method.

  4. The Method Properties dialog box displays. Use the controls on the General tab to define the method parameters, return type, and exceptions raised. See “Method properties” for more information.

StepsEditing method properties

Use this procedure to display the method properties window, which provides a point-and-click controls to edit the method’s IDL signature and also configures settings that are not represented in IDL.

  1. Highlight the icon for the interface of interest.

  2. Highlight the icon for the method to be edited.

  3. Choose File | Method Properties.

  4. The Method Properties dialog box displays. See “Method properties” for more information.

StepsRemoving methods graphically

  1. Expand the icon for the interface of interest.

  2. Highlight the icon for the method to be deleted.

  3. Choose File | Delete Method.