[Geoserver-devel] [JIRA] (GEOS-9122) JNDI connections and GeoServer bin distribution

tõnis kärdi created an issue

GeoServer / ImprovementGEOS-9122

JNDI connections and GeoServer bin distribution

Issue Type:

ImprovementImprovement

Assignee:

Unassigned

Attachments:

gs-jetty-jndi-walkthrough.txt

Created:

04/Feb/19 1:56 PM

Priority:

MediumMedium

Reporter:

tõnis kärdi

Picking up on the discussion in http://osgeo-org.1560.x6.nabble.com/configuring-JNDI-for-GeoServer-on-Jetty-td5393401.html

Roughly speaking jndi connections on Geoserver + Jetty can be achieved by:

  1. Add plus.mod and jndi.mod files (+ required jars in jetty lib). Which I did by hand (copypasting from the official Jetty distribution).
  2. Include the loading of these modules in start.ini.
  3. And then the rest was simply declaring the connection in WEB-INF/jetty-env.xml and a resource-ref in WEB-INF/web.xml

and then after GeoServer restart I was able to access a PG database on localhost through the JNDI connection. A bit more verbose walkthrough at gs-jetty-jndi-walkthrough.txt

Now I can condense the third step to a docs/tutorial page similar to Setting up a JNDI connection pool with Tomcat, but could/should the first two maybe be resolved by including the necessary files already during the binary build? Of course this can be hand managed by users actually requiring the functionality but looking at the plus/jndi mod files over the more recent Jetty versions it seems that their dependencies change so there’s going to be a gotcha that will depend on the specific version of Jetty GeoServer is packaged with.

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100098-sha1:f5f2a49)

Atlassian logo