A REST service binding gives details necessary
to access a REST or EGL REST-RPC service.
To add a REST binding to an EGL deployment descriptor, do
as follows:
- Open the EGL Deployment Descriptor editor by double-clicking
the name of an EGL deployment descriptor.
- Click Resource Bindings.
The Resource Bindings Configuration tab
is displayed.
- Click Add. The Add
a Resource Binding page is displayed.
- Click REST service binding and then
click Next. The Add
a REST Service Binding page is displayed.
- In the REST service binding name field,
specify the service-binding name, which is also called a key.
You specify the service-binding name when you declare a service-access
variable and set the Resource annotation, uri field;
or when you invoke the Resources.getResource function.
- In the baseURI field, specify a
Universal Resource Identifier (URI):
- The sessionCookieID field is not
in use.
- 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 Resource Bindings tab.
- Select the binding.
- Edit the displayed information.
The tab includes the enableGenerate check
box. The purpose of that check box is to specify whether to deploy
the binding information. If you are using a workspace URI or want
to keep the binding detail out of the deployed WAR file, clear the
check box.