I am using java driver and jaybird. In my previous version with jaybird 2.x, I used GDS (Services API) low-level access to connect the server (without connection to the db part in the connection) to get the server version string.
Now I'm trying to use FB3 + jaybird3beta. There is no GDS API in JB3. As I can see from the docs, there is an org.firebirdsql.util.FirebirdSupportInfo object with 3 implementations
static FirebirdSupportInfo supportInfoFor(Connection connection)
static FirebirdSupportInfo supportInfoFor(FbDatabase database)
static FirebirdSupportInfo supportInfoFor(GDSServerVersion serverVersion)
As I can see:
- GDSServerVersion - an object representing the version of the Firebird server (already received somehow).
- FbDatabase - a handle to the database connection.
- A connection is a kind of "connection." So dig a bucket:
there is also a java.sql.DriverManager with the getConnection () function, which "Attempts to establish a connection to the given database URL
So, as I understand it, canβt get the server version without connecting to any database? Or am I missing something?
Or how can I get the server version using only the server: port and username / password?
source
share