Adding an EGL binding to an EGL deployment descriptor

An EGL service binding gives the details necessary to access an EGL service.

Before you can perform this task you must have an EGL deployment descriptor. For details about creating the file, see "Creating an EGL deployment descriptor in the EDT IDE."
To add an EGL binding to the EGL deployment descriptor, do as follows:
  1. Open the EGL Deployment Descriptor editor by double-clicking the name of 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 EGL service binding and then click Next. The Add an EGL Service Binding page is displayed.
  5. In the EGL service binding name field, specify the service-binding name, which is also called a key. You can type the name, but the following steps might save you time:
    1. Click the Browse button that is next to the EGL service binding name field. The Interface Selection window is displayed.
    2. Select the name of the Interface or Service part that can be 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. In the Service name field, type the package and service name; for example, myPackage.MyService. The Service part does not need to be in your workspace. However, if you referenced a Service part when you browsed to the EGL service binding name in the previous step, the name is already in the field.
  7. In the alias field, type the alias of the EGL-generated service. If you leave this field blank, the value in the Service name field is used for access.
  8. 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."
  9. 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.