Subject | Re: [Firebird-Java] Re: FBUserManager |
---|---|
Author | Roman Rokytskyy |
Post date | 2005-06-28T08:53:36Z |
> I've tested it yesterday evening and I have a little question yet toNo, currently this is not possible.
> the example. Is there any way to get host, port, user and password
> from the active java.sql.Connection?
> Or is the only way to parse the con.getMetadData().getURL() string orYou will get the host and port values, user name you can get via
> save the connection parameter separate and use it later?
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