Proper usage of JDBC Connection Pool (Glassfish)

后端 未结 3 842
攒了一身酷
攒了一身酷 2020-12-01 15:02

I need a database connection in Java Web service implemented as a session bean, and I\'m not sure if I do it right.

I created a class

public final          


        
3条回答
  •  無奈伤痛
    2020-12-01 15:39

    Um, isn't this an example to a JDBC DataSource, not a Glassfish Connection Pool?

提交回复
热议问题