Connect to KIMService, deployed on a specific host and port
To connect to KIMService, you need to specify the RMI host name (IP) and RMI port, and call:
If your application working directory doesn't contain a config file kim_connection.properties, the default localhost and port:1099 will be used for the method GetService.from(). Alternatively, in order to connect to KIMService on a specific host and port, you must use the methods that take host and port as parameters.
If your application folder contains such a file, you must set the following variables in it:
After KIMService is connected, you can use the getVersion() method to check the KIM version.
Obtain a Component (e.g. DocumentRepositoryAPI, SemanticRepositoryAPI, etc.)
Each component gives access to a corresponding API interface. Obtaining a component when connected to KIMService is done by calling the appropriate get() method as shown below.
A successful KIMService connection is essential for implementing all examples and looks like this: