Subject | Re: FBConnectionPoolDataSource problems |
---|---|
Author | Roman Rokytskyy |
Post date | 2004-06-25T10:46:29Z |
> FBConnectionPoolDataSource xaDatasource = newYou can simply use
> FBConnectionPoolDataSource();
> xaDatasource.setType(GDSType.getType("PURE_JAVA").toString());
xaDatasource.setType("PURE_JAVA");
xaDatasource.setDatabase("localhost/3050:D:/Projects/test/test.fdb");
> xaDatasource.setMinConnections(0);Where is following code?
> xaDatasource.setMaxConnections(2);
> xaDatasource.setPingInterval(5000);
> Properties p = new Properties();
> p.setProperty(FBDriver.USER, "sysdba");
> p.setProperty(FBDriver.PASSWORD, "masterkey");
> p.setProperty("charSet", "ISO8859_1");
xaDatasource.setProperties(p);
> but as soon as I try to get a connectionInifine loop or a very long loop? Try to set blocking timeout (default
> xaDatasource.getXAConnection();
> the driver does not return anymore. Looking at the code I noticed that
> in PooledConnectionQueue.take() the driver wasn't able to get a
> connection because userName and password failed, although correctly
> initialized, and entered an infinite loop.
value is Integer.MAX_VALUE).
> FBConnectionPoolDataSource.getPooledConnection() actually isthat's not empty user name and password, but a constant saying that no
> hardcoded to use EMPTY_USER_PASSWORD instead of the previously
> provider credentials.
user and password were supplied in the method call. This object is
used to find the appropriate conection queue in the map, that it turn
uses credentials supplied to the data source.
> Getting a connection as follows works:... but your character encoding for the connection is NONE, not
> xaDatasource.getXAConnection("masterkey", "sysdba");
ISO8859_1, right?
Roman