Book Image

GeoServer Cookbook

By : Stefano Iacovella
Book Image

GeoServer Cookbook

By: Stefano Iacovella

Overview of this book

Table of Contents (17 chapters)
GeoServer Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Setting up a JNDI connection pool


Several recipes of this book use data stored in an RDBMS, in fact PostgreSQL, with the PostGIS spatial extension.

Configuring spatial data from a RDBMS in your GeoServer requires you to create a connection setting for several parameters from the admin web interface. Whatever database you are using, it may be useful to configure the connection using the Java Naming and Directory Interface (JNDI) standard.

How to do it…

  1. Stop your Tomcat using the following command:

    $ sudo service tomcat stop
    
  2. Move the JDBC PostgreSQL driver in the lib folder of Tomcat:

    $ cd /opt/Tomcat7042/webapps/geoserver/WEB-INF/lib
    $  sudo mv postgresql-8.4-701.jdbc3.jar /opt/Tomcat7042/lib/.
    
  3. Now, edit the Tomcat configuration file in order to set...