Those example codes seem to be using JDBC directly.
That's not a very good connection pool.
Consider setting up a proper connection pooling layer, such as:

 bonecp - http://jolbox.com/
 hikaricp - http://brettwooldridge.github.io/HikariCP/
 dbcp - http://commons.apache.org/proper/commons-dbcp/
 c3p0 - http://www.mchange.com/projects/c3p0/

Those will be the layer between your code, and your actual jdbc driver,
providing connection (and often, statement) pooling.

--
Joakim Erdfelt <[email protected]>
webtide.com <http://www.webtide.com/> - intalio.com/jetty
Expert advice, services and support from from the Jetty & CometD experts
eclipse.org/jetty - cometd.org


On Tue, Apr 1, 2014 at 2:14 PM, Cristina Rosales <[email protected]>wrote:

>
> Hi,
>
> I have a connection problem.  I am not able to connect and am wondering if
> anyone else has been having issues..
>
> Here is where I've posted my code.
>
> I really hope someone can help me..  I would love to deploy my app for
> free on Heroku.. :)
>
> Here's my code:
> https://discussion.heroku.com/t/jetty-and-connection-pooling/454/3
>
> OK, thanks,
>
> Cristina. :)
>
> _______________________________________________
> jetty-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>
>
_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to