Subject Re: FB Connection Pool red strikethrough NetBeans compiler
Author fb_database
--- In Firebird-Java@yahoogroups.com, Mark Rotteveel <mark@...> wrote:
>
> On Tue, 21 May 2013 19:41:44 -0000, "fb_database" <fb_database@...>
> wrote:
> > Hi ! to all :)
> > 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
> >
> <http://www.firebirdsql.org/file/documentation/drivers_documentation/Jay\
> > bird_2_1_JDBC_driver_manual.pdf>
> >
> > 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 ?
>
> I don't know what Netbeans means with red strikethrough. Does the 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
>




Dear Sir,

Thank You very much for your answer ;)

Yes you be Right commands seems deprecated ; I have done the error to think that many Pool examples on FB server seems to be recent...
It is why I have think : I could have done somewhere an error ;)


* But in fact these commands are simply Deprecated. *
Thank you for your nice Tech Skill advices ;)


I think some examples on FB website perhaps require to be updated (or shared by versions ?). It is sometimes hard to know what to do... when we start to learn on some products ;)

* It is always good to update the examples to be able to learn the new versions of commands : to promote the nice work that is FB-Database & his Modules*... but sure Time is always the problem for everybody ;)


For the moment I really enjoy FB :)

Thank you for all ;)

J.