Subject Re: [Firebird-Java] Re: FBUserManager
Author Roman Rokytskyy
> I've tested it yesterday evening and I have a little question yet to
> the example. Is there any way to get host, port, user and password
> from the active java.sql.Connection?

No, currently this is not possible.

> Or is the only way to parse the con.getMetadData().getURL() string or
> save the connection parameter separate and use it later?

You will get the host and port values, user name you can get via
DatabaseMetaData.getUserName(), but password is not available to you.

Why do you need this information from the Connection object? Why is it not
possible to save before connecting assuming that you use either
javax.sql.DataSource interface or new
FirebirdDriver.getConnection(FirebirdConnectionProperties) call?

I just try to understand, whether to add a call for this to connection or
not.

Roman