Prepared Statements along with Connection Pooling

后端 未结 5 1352
走了就别回头了
走了就别回头了 2021-01-02 14:33

I have a question regarding general use of Prepared Statement along with connection pooling.

Prepared Statements are generally tied to one connection only.In our app

5条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-02 15:11

    You can't return the Connection to the pool if you plan on using the PreparedStatement.

    In other words: you can only use a PreparedStatement constructed from a Connection that you currently have.

提交回复
热议问题