[英]How can I use JDBC connection pooling in Jetty 8?
I used Tomcat's JDBC connection pool previously where it could be easily configured in Java . 我以前使用过Tomcat的JDBC连接池, 可以在Java中轻松配置它。
Now I use Jetty 8. 现在,我使用Jetty 8。
How can I use JDBC connection pooling in Jetty? 如何在Jetty中使用JDBC连接池? I looked here however I don't know where to put those XML snippets.
我在这里看过,但是我不知道将这些XML代码片段放在哪里。
You can configure all JNDI resources in a jetty.xml file or in a WEB-INF/jetty-env.xml file, or a context XML file. 您可以在jetty.xml文件或WEB-INF / jetty-env.xml文件或上下文XML文件中配置所有JNDI资源。 For more information, see JNDI.
有关更多信息,请参见JNDI。
You will also need to add the pool implementation jar file to the classpath. 您还需要将池实现jar文件添加到类路径。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.