22

do we need to call any method on dbcp.BasicDataSource or jndi datasource(i'm using jboss) to return the connection after done with it?

BenMorel
  • 34,448
  • 50
  • 182
  • 322
user920420
  • 221
  • 1
  • 2
  • 4

1 Answers1

31

Nope, just call Connection.close(). If this connection was obtained from a pooled data source, then it won't actually be closed, it'll just be returned to the pool.

skaffman
  • 398,947
  • 96
  • 818
  • 769