Adding a native binding to the deployment descriptor

A native service binding gives the details necessary to access an IBM® i service program directly.
  1. Open the EGL Deployment Descriptor editor by double-clicking an EGL deployment descriptor. For details about creating the file, see “Creating an EGL deployment descriptor.”
  2. Click Service Bindings. The Service Bindings Configuration tab is displayed.
  3. Click Add. The Add a Service Binding page is displayed.
  4. Click Native service binding and then click Next. The Add a Native Service Binding page is displayed.
  5. In the Native service binding name field, specify the service-binding name, which is also called a key. You can type the name or do as follows:
    1. Click the Browse button that is next to the Native service binding name field. The Interface Selection window is displayed.
    2. Select the name of the Interface part that is the basis of a service-access variable in your code.
    3. Click OK.

    You specify the service-binding name when you declare a service-access variable and set the @BindService property, bindingKey field.

  6. Choose a protocol type for the service binding:
    • If you already defined a sharable protocol for the service, click Choose from protocols and select the sharable protocol from the list.
    • Alternatively, choose a specific protocol type and specify the related attributes. For details, see “Options for sharable protocols.”
  7. Click Finish. The Service Bindings Configuration tab is available again. In the future, you can update the service binding that you just defined:
    1. Open the Service Bindings Configuration tab.
    2. Select the binding.
    3. Edit the displayed information.

Feedback