eclipselink连接池 [英] eclipselink connection pooling

查看:249
本文介绍了eclipselink连接池的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果在eclipse链接的persistence.xml中未定义连接池,那么默认行为是什么?

If connection pooling is not defined in the persistence.xml for eclipse link, what is the default behavior?

它将为每个事务打开和关闭JDBC连接吗?它将创建具有一些默认设置的连接池吗?

Will it open and close a JDBC connection for every transaction? Will it create a connection pool with some defaults?

推荐答案

不使用数据源时EclipseLink的默认连接池是最小/最大32个连接的池,初始连接数为1.因此,每个事务都将使用池化连接,而不是连接/断开连接.

The default connection pooling for EclipseLink when not using a data source is a pool of min/max 32 connections, with an initial of 1 connections. So each transaction will use a pooled connection, and not connect/disconnect.

这篇关于eclipselink连接池的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆