开发者

How to share connection pool among multiple Java applications

开发者 https://www.devze.com 2022-12-29 04:26 出处:网络
I\'m implementing several JavaSE applications on single server. Is it possible to setup a single connection pool (e.g. C3P0) and share among these applications? I just 开发者_JS百科want to have an eas

I'm implementing several JavaSE applications on single server. Is it possible to setup a single connection pool (e.g. C3P0) and share among these applications? I just 开发者_JS百科want to have an easy way to manage the total number of DB connections.

Is there any drawbacks using such centralized connection pool?

Thank you, Wilson


You can simply use the same data source defined in the server for all application to share the same DB connection pool easily.

One obvious drawback would be that performance of independent application may degrade due to a load on totally unrelated application which would be hard to figure out.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号