JNDI connection or JDBC

When creating spatial database connections in GeoServer, you might notice that you are frequently provided with two options for the data store as highlighted in the following screenshot:

JNDI connection or JDBC

Vector data sources

In the preceding example, we can see that for Microsoft SQL Server and PostGIS, there is a standard data source option as well as one with (JNDI) after the name. If you noticed this, then you might have thought to yourself, "What's the difference?", and if you are aware of the difference, you might be wondering why you would want to use it over the standard JDBC version.

JNDI appended to the name of the data source stands ...

Get Mastering GeoServer now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.