English 中文(简体)
5. MySQL与嵌入式杰蒂连接
原标题:MySQL connection pooling with embedded Jetty

我拥有一个基于杰特当前释放情况运行的网上服务器。 它作为嵌入式服务器运行,主要是因为我不了解任何关于写作服务器的信息,而且把杰蒂混为一谈,似乎是与这个服务器有充分记录的事项之一。

因此,它迄今运作良好。 收到的请求存放在MySQL数据库。 由于这些请求中有许多,我谨利用联通,以便我每次开关和关闭联系时不会浪费时间。 这似乎是一个问题,因为我找不到任何关于把根杰蒂和我的SQL连接起来的良好文件。 我猜测,困难但我不知什么时候开始的想法。

是否有任何人已经与杰特人联手,能够向我显示正确的方向?

提前感谢!

Update: I ve implemented connection pooling using the C3P0 library. That seems to work fine. But since Jetty supports connection pooling to, I guess I should rather use that instead of some third party library.

问题回答

喷气支持日本国际协力事业团的联系,但你必须提供您的集合图书馆,例如3p0或dbcp。 见以下例子:

So, in fact, based on your update you are already doing what you were going to. Congratulations!





相关问题
Get number of free connections in connection pool

In my project Spring manages connection pool with org.apache.commons.dbcp.BasicDataSource class. Is possible to get how many connections are free or used in current time? Thanks.

Hibernate, C3P0, Mysql Connection Pooling

I recently switched from Apache DBCP connection pooling to C3P0 and have gone through my logs to see that there are connection timeout issues. I haven t had this in the past with DBCP and Tomcat, so ...

Enable ODP.Net performance counters

How can I enable the ODP.Net Performance Counters for my web app??? I m Using: .Net 2.0 Oracle 11g Windows 2008 R2

Connection Pooling on Oracle 11g w/ asp.net

What is the best way to handle connection pooling with Oracle 11g and asp.net, I m having issues where Oracle refuses to open up any new connections for the web app after a while. This causes the ...

Connection Pooling and Multiple Connection Strings

An ASP.NET 3.5 application has two connection strings: Data Source=RedDB;Initial Catalog=Red;User Id=myuser;Password=pas;Max Pool Size=50;Min Pool Size=1 Data Source=BlueDB;Initial Catalog=Blue; ...

Creating a database connection pool

Need information on creating a connection pool to the database (irrespective of the database) , and how efficient they are? What are the conditions where they can enhance performance. How to create ...

热门标签