Subject | Pools and Tomcat Data Sources |
---|---|
Author | Steffen Heil |
Post date | 2004-06-04T20:42:50Z |
Hi
You assume, I use 1.5 rc 3? I used to use 1.0.1, anyway I have switched now.
But I have some problems.
Could someone modify the following Code to work with 1.5 ? I could not get
it running. I already failed to tell the driver which dialect the database
is using...
And I could not find an example for 1.5.
dataSource = new FBWrappingDataSource();
FBConnectionRequestInfo cri = dataSource.getConnectionRequestInfo();
cri.setProperty( ISCConstants.isc_dpb_lc_ctype, charset );
// cri.setProperty(ISCConstants.isc_dpb_num_buffers, 1);
cri.setProperty( ISCConstants.isc_dpb_sql_dialect, dialect );
dataSource.setConnectionRequestInfo( cri );
dataSource.setDatabaseName( file );
dataSource.setUser( user );
dataSource.setPassword( password );
dataSource.setIdleTimeoutMinutes( idleTimeout );
dataSource.setPooling( pooling );
dataSource.setMinSize( minSize );
dataSource.setMaxSize( maxSize );
dataSource.setLoginTimeout( loginTimeout );
Does someone have an example about configuring data pools as tomcat
resources?
Regards,
Steffen
> > What is the non-deprecated way to replace the following functions:org.firebirdsql.pool.FBSimpleDataSource
> >
> > warning: [deprecation] setDatabaseName(java.lang.String) in
> > org.firebirdsql.jdbc.FBSimpleDataSource has been deprecated
> > warning: [deprecation] setUser(java.lang.String) in
> > org.firebirdsql.jdbc.FBSimpleDataSource has been deprecated
> All pooling related code has been moved to org.firebirdsql.pool package:
> org.firebirdsql.jdbc.FBSimpleDataSource ->
You assume, I use 1.5 rc 3? I used to use 1.0.1, anyway I have switched now.
But I have some problems.
Could someone modify the following Code to work with 1.5 ? I could not get
it running. I already failed to tell the driver which dialect the database
is using...
And I could not find an example for 1.5.
dataSource = new FBWrappingDataSource();
FBConnectionRequestInfo cri = dataSource.getConnectionRequestInfo();
cri.setProperty( ISCConstants.isc_dpb_lc_ctype, charset );
// cri.setProperty(ISCConstants.isc_dpb_num_buffers, 1);
cri.setProperty( ISCConstants.isc_dpb_sql_dialect, dialect );
dataSource.setConnectionRequestInfo( cri );
dataSource.setDatabaseName( file );
dataSource.setUser( user );
dataSource.setPassword( password );
dataSource.setIdleTimeoutMinutes( idleTimeout );
dataSource.setPooling( pooling );
dataSource.setMinSize( minSize );
dataSource.setMaxSize( maxSize );
dataSource.setLoginTimeout( loginTimeout );
Does someone have an example about configuring data pools as tomcat
resources?
Regards,
Steffen