I use java and jaybird driver. In my previous version with jaybird 2.x I used GDS low level access (Services API) to connect the server (without db-part in connection), to get the server version string.
Now I try to use FB3 + jaybird3beta. There are no GDS API in JB3. As I see from docs - there are org.firebirdsql.util.FirebirdSupportInfo object with 3 implementation
static FirebirdSupportInfo supportInfoFor(Connection connection)
static FirebirdSupportInfo supportInfoFor(FbDatabase database)
static FirebirdSupportInfo supportInfoFor(GDSServerVersion serverVersion)
As I see:
- GDSServerVersion - Object representing a Firebird server version (already got somehow).
- FbDatabase - Connection handle to a database.
- Connection - some kind of "connection". So dig dipper:
there are also java.sql.DriverManager with getConnection() function that " Attempts to establish a connection to the given database URL"
So, as I understand it s unable to get server version without connection to any database? Or I miss something?
Or how can I get the version of server using only server:port and given username/password?