BoneCP doesn't have a JNDI factory AFAICT, and it's also missing a lot of
critical features, like validation etc

Filip 

> -----Original Message-----
> From: zuxiong lin [mailto:linzuxiong1...@gmail.com]
> Sent: Wednesday, May 02, 2012 7:36 PM
> To: Tomcat Users List
> Subject: Re: How to config the Tomcat 7.x JNDI datasource by using
> BoneCP ??
> 
> > Don't do that: remove mysql-connector-j-5.1.9.jar from WEB-INF/lib.
> > Also remove the JAR for BoneCP.
> 
> I donot have a try now. This morning I received your mail ,UTC+8.
> Before I sent my mail for help , I just put the jar in both Tomcat/lib
> dir
> and webapp/WEB-INF/lib.
> And I found I am very confused in Tomcat-> <Reasource *factory*="" />
> ...
> It seems that facotry doesnot work well.
> 
> I found com.jolbox.bonecp.BoneCPDataSource have properties
> : driverClassName in javax.naming.spi.ObjectFactory#getObjectInstance
> and driverClass .
> 
> 
> 
> Thanks!
> 
> 
> On Thu, May 3, 2012 at 9:19 AM, Christopher Schultz <
> ch...@christopherschultz.net> wrote:
> 
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Zuxiong,
> >
> > On 5/2/12 9:13 PM, zuxiong lin wrote:
> > > When I use BoneCP in per-web-app,  it is OK with  partitionCount .
> > > "partitionCount " is a property of BoneCP.
> >
> > Okay, that's fine then.
> >
> > > MySQL Connector/J  5.1.19,  I put it into both Tomcat's lib/
> > > directory and my webapp's WEB-INF/lib directory.
> >
> > Don't do that: remove mysql-connector-j-5.1.9.jar from WEB-INF/lib.
> > Also remove the JAR for BoneCP.
> >
> > > I can have a try. I think it doesnot work :
> >
> > Did you try it or not?
> >
> > >> you'll need to have the JAR files for MySQL Connector/J *and*
> > >> BoneCP in Tomcat's lib/ directory and *not* in your webapp's
> > >> WEB-INF/lib directory.
> >
> > I thought it was clear: Tomcat needs these libraries. Your webapp does
> > not. If you put those .jar files into WEB-INF/lib, things will ber
> > seriously confused.
> >
> > - -chris
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
> > Comment: GPGTools - http://gpgtools.org
> > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> >
> > iEYEARECAAYFAk+h3Q8ACgkQ9CaO5/Lv0PBItwCZAQ46/6hFozDCuQuzD6CzAsFg
> > CRAAoKLTCLFSoswkgvreSBUBYeShxM1R
> > =k9mT
> > -----END PGP SIGNATURE-----
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> > For additional commands, e-mail: users-h...@tomcat.apache.org
> >
> >


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to