The Java EE Server manages your data source for you, usually with a connection pool. It definitely does [b]not[/b] read a config file and create a new connection for each client request.
In Glassfish, you can create the pool using the Admin Console, or edit the domain.xml config file manually.
You may also want to check out JPA instead of handcrafting JDBC statements.
[Message sent by forum member 'hwellmann']
http://forums.java.net/jive/thread.jspa?messageID=477284