什么时候C3P0 c3p0pooledconnectionpoolmanager放了第二个authstopools的值? [英] When did C3P0 c3p0pooledconnectionpoolmanager put second authstopools's value?

查看:411
本文介绍了什么时候C3P0 c3p0pooledconnectionpoolmanager放了第二个authstopools的值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我读到C3p0的代码时,我发现C3P0PooledConnectionPoolManager类有一个名为authToPools的字段,用于存储user'info和ConnectionPool映射。似乎多个数据源将创建两个分别具有C3P0PooledConnectionPoolManager的数据。我想知道什么时候C3P0 PooledConnectionPoolManager放入第二个地图值。谢谢你的决定!



我的尝试:



它当我读取c3p0的代码时,多个数据源将分别创建两个数据库,它们分别有C3P0PooledConnectionPoolManager。

when I read C3p0's code ,I discovered C3P0PooledConnectionPoolManager class has a filed called authToPools that store user'info and ConnectionPool map.It seemds that multiple datasource will create two datasoure which have its C3P0PooledConnectionPoolManager respectively. I wanna know when C3P0PooledConnectionPoolManager put the second map value. Thanks for your resoultion!

What I have tried:

It seemds that multiple datasource will create two datasoure which have its C3P0PooledConnectionPoolManager respectively when I read the c3p0's code.

推荐答案

不要在快速答案下发布 - 如果你有来自文章的代码,然后在该文章的底部有一个添加评论或问题按钮,这会导致将电子邮件发送给作者。然后他们会被告知你希望与他们交谈。

在这里发布这个依赖于他们匆匆而过并意识到这是为了他们。
Don't post this under Quick Answers - if you got the code from an article, then there is a "Add a Comment or Question" button at the bottom of that article, which causes an email to be sent to the author. They are then alerted that you wish to speak to them.
Posting this here relies on them "dropping by" and realising it is for them.


这篇关于什么时候C3P0 c3p0pooledconnectionpoolmanager放了第二个authstopools的值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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