Configuration of a database connection in a JEE application

I intend to create a JEE application with tomcat as the webcontainer. I will use postgresql as a database, and will use Eclipse as IDE. Where can I configure how to access the database?
2 answers

Taggings:

The configuration is done in the file "server.xml" (it is in the installed server's config directory, which you can find under "Servers" in your project explorer in Eclipse), in the element "Resource" (under element "GlobalNamingResources").