Subject | isc_dpb_garbage_collect |
---|---|
Author | fedd_kraft |
Post date | 2005-02-14T11:41:04Z |
Hello,
how do I set the dpb_no_garbage_collect parameter to the connection?
I use built-in connection pooling like this:
ds = new org.firebirdsql.jdbc.FBWrappingDataSource();
ds.setDatabase(database);
ds.setUserName(dbuser);
ds.setPassword(dbpwd);
ds.setIdleTimeoutMinutes(5);
ds.setPooling(true);
ds.setMinSize(minpoolsize);
ds.setMaxSize(maxpoolsize);
ds.setLoginTimeout(10);
org.firebirdsql.jca.FBConnectionRequestInfo cri = ds.
getConnectionRequestInfo();
cri.setProperty
(org.firebirdsql.gds.ISCConstants.isc_dpb_lc_ctype,
dbenc);
cri.setProperty(org.firebirdsql.gds.ISCConstants.isc_dpb_sql_dialect,
3);
ds.setConnectionRequestInfo(cri);
cri = null;
I guess I have pretty old version...
I tried to add
cri.setProperty
(org.firebirdsql.gds.ISCConstants.isc_dpb_garbage_collect)
- but with no visible effect. How do I check whether the parameter
really
applied?
What is (or was for my version) the default value of this parameter?
(Last question - how do I learn what version I have? :)
Thank you!
fedd
how do I set the dpb_no_garbage_collect parameter to the connection?
I use built-in connection pooling like this:
ds = new org.firebirdsql.jdbc.FBWrappingDataSource();
ds.setDatabase(database);
ds.setUserName(dbuser);
ds.setPassword(dbpwd);
ds.setIdleTimeoutMinutes(5);
ds.setPooling(true);
ds.setMinSize(minpoolsize);
ds.setMaxSize(maxpoolsize);
ds.setLoginTimeout(10);
org.firebirdsql.jca.FBConnectionRequestInfo cri = ds.
getConnectionRequestInfo();
cri.setProperty
(org.firebirdsql.gds.ISCConstants.isc_dpb_lc_ctype,
dbenc);
cri.setProperty(org.firebirdsql.gds.ISCConstants.isc_dpb_sql_dialect,
3);
ds.setConnectionRequestInfo(cri);
cri = null;
I guess I have pretty old version...
I tried to add
cri.setProperty
(org.firebirdsql.gds.ISCConstants.isc_dpb_garbage_collect)
- but with no visible effect. How do I check whether the parameter
really
applied?
What is (or was for my version) the default value of this parameter?
(Last question - how do I learn what version I have? :)
Thank you!
fedd