A native service binding gives the details necessary to
access an IBM® i service program
directly.
- 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.”
- Click Service Bindings. The Service
Bindings Configuration tab is displayed.
- Click Add. The Add a Service
Binding page is displayed.
- Click Native service binding and then click Next.
The Add a Native Service Binding page is displayed.
- 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:
- Click the Browse button that is next to
the Native service binding name field. The
Interface Selection window is displayed.
- Select the name of the Interface part that is the basis of a service-access
variable in your code.
- Click OK.
You specify the service-binding name when you declare a service-access
variable and set the @BindService property, bindingKey field.
- 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.”
- Click Finish. The Service Bindings
Configuration tab is available again. In the future, you
can update the service binding that you just defined:
- Open the Service Bindings Configuration tab.
- Select the binding.
- Edit the displayed information.