Subject | Re: [Firebird-Java] FB Connection Pool red strikethrough NetBeans compiler |
---|---|
Author | Mark Rotteveel |
Post date | 2013-05-22T09:52:08Z |
On Tue, 21 May 2013 19:41:44 -0000, "fb_database" <fb_database@...>
wrote:
also give an error or warning? I will check in Netbeans later this week,
but the most likely cause is that all classes in org.firebirdsql.pool have
been deprecated in Jaybird 2.2 and are going to be removed in Jaybird 2.3
(see the releasenotes:
http://www.firebirdsql.org/file/documentation/drivers_documentation/java/2.2.3/release_notes.html#__RefHeading__2753_1560579136
). The red strikethrough could just be the way Netbeans shows deprecation.
If you want to use a connection pool, and you are not developing on an
application server, I'd suggest to use a third-party connection like BoneCP
or c3p0, otherwise use the connection pooling provided by your application
server.
Mark
wrote:
> Hi ! to all :)<http://www.firebirdsql.org/file/documentation/drivers_documentation/Jay\
> I try to use FB Pool with JAVA. I encounter a compiler error problem in
> the NetBeans window… and I do not know why.
>
> I use : Java 1.6.0_43
> FireBird 2.5.2
> .JAR tested for FB Pool from Jaybird 2.2.2 et 2.2.3 for Java 1.6
> NetBeans IDE 7.3 (Build 201302132200)
>
> I can connect from Java to database without a Pool.
> But I cannot use the FB pool from Java…
>
> I have tested many sources, please have a look at the both different
> sources :
>
>
> A] >>> Page 16 of the document
> Jaybird_2_1_JDBC_driver_manual.pdf
>
> bird_2_1_JDBC_driver_manual.pdf>I don't know what Netbeans means with red strikethrough. Does the compiler
>
> I get red strikethrough text for :
> FBConnectionPoolDataSource
> on
> org.firebirdsql.pool.FBConnectionPoolDataSource pool = new
> org.firebirdsql.pool.FBConnectionPoolDataSource();
>
>
> B]>>> get red strikethrough text for "A simple pooling example" :
> http://www.firebirdsql.org/en/jaybird-faq/#5
> <http://www.firebirdsql.org/en/jaybird-faq/#5>
> FBWrappingDataSource
> on
> org.firebirdsql.jdbc.FBWrappingDataSource fbwds = new
> org.firebirdsql.jdbc.FBWrappingDataSource();
>
>
> Please do you have an idea concerning what can cause that problem of I
> get red strikethrough text reported by the NetBeans compiler ?
also give an error or warning? I will check in Netbeans later this week,
but the most likely cause is that all classes in org.firebirdsql.pool have
been deprecated in Jaybird 2.2 and are going to be removed in Jaybird 2.3
(see the releasenotes:
http://www.firebirdsql.org/file/documentation/drivers_documentation/java/2.2.3/release_notes.html#__RefHeading__2753_1560579136
). The red strikethrough could just be the way Netbeans shows deprecation.
If you want to use a connection pool, and you are not developing on an
application server, I'd suggest to use a third-party connection like BoneCP
or c3p0, otherwise use the connection pooling provided by your application
server.
Mark