users@glassfish.java.net

Re: location/use of configuration files

From: <glassfish_at_javadesktop.org>
Date: Sun, 11 Jul 2010 04:23:35 PDT

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