Beginning with FairCom DB V11.2 and FairCom RTG V2, the connection string is in the following format:
jdbc:ctree://<host>[:portnumber]/<dbname>[?param=value[¶m=value]...]
The valid values for param are:
When peerAuthentication is requested, the client’s trust store must contain the server’s certificate as shown in the example below.
NOTE: tcpKeepaliveInterval requires Java 11, and is not supported on all platforms.
The tutorials use a connection string that is set for the default configuration:
"jdbc:ctree://localhost:6597/ctreeSQL", "ADMIN", "ADMIN"
TLS/SSL Examples
Connection c = getConnection("jdbc:ctree://localhost:6597/ctreeSQL?ssl=basic");
System.setProperty("javax.net.ssl.trustStore","TrustStore.key");
System.setProperty("javax.net.ssl.trustStorePassword","mypassword""");
Connection c = getConnection("jdbc:ctree://localhost:6597/ctreeSQL?ssl=peerAuthentication");
For backward compatibility, the older format ("jdbc:ctree:6597@localhost:ctreeSQL", "ADMIN", "ADMIN") is still supported but should be considered deprecated.