The J2EE interface is a service, or bean, called ApiService. The functions available on the API are all available through this service.
A handle to the bean is obtained in Spring Application context lookup. Some other parameters are required. See the samples provided for an example of these settings. Each sample is standalone, and has the settings to obtain a handle to the service. Many of the samples have assumptions about data, so it is important you read the code and understand your server environment (data you have available to you).
You have to change the IP address, user name, and password in the sample before you can run them against your server.