Need Code to create Connection Pool in java

后端 未结 10 1670
轻奢々
轻奢々 2020-11-30 20:50

Need code to create the connection pool in java? How does we make sure that connection pool doesn\'t return the same object which is already in use? How happens if client cl

10条回答
  •  一向
    一向 (楼主)
    2020-11-30 21:36

    If your application runs on a server, then configure as Data Source, where server will take care of Pooling or else if a simple Java Client then use Apache DBCP(if to the database) or else use Apache Commons Pooling API See here: Apache Commons

提交回复
热议问题