It is necessary to connect to the Tarantula database from a web-face written in jav, there is something like instruction on github ( connector java for tarantool ), but I don’t understand the principle of this connector, and that it is a library / driver, and where it should be put in the project what to carry out a connection to a DB?

    1 answer 1

    Java Connector for Tarantool is a Java library. You either connect it to the project as a normal maven dependency.

    <dependency> <groupId>org.tarantool</groupId> <artifactId>connector</artifactId> <version>1.7.2</version> </dependency> 

    or if you have a gradle

     compile group: 'org.tarantool', name: 'connector', version: '1.7.2' 

    or, if for some reason you still do not use dependency management tools, drop to the other jar files (usually this is the lib folder).

    After that, as described in README, you configure the connection, get a copy of the TarantoolClient interface and use it to call commands, for example:

     client.syncOps.ping(); 

    A full example of use can be found in the repository in the test: https://github.com/tarantool/tarantool-java/blob/master/src/it/java/org/tarantool/TestTarantoolClient.java

    Work with tarantool, of course, will be conducted on the server side of your web application.