tõnis kärdi created an issue |
Issue Type: |
Improvement |
---|---|
Assignee: |
Unassigned |
Attachments: |
gs-jetty-jndi-walkthrough.txt |
Created: |
04/Feb/19 1:56 PM |
Priority: |
Medium |
Reporter: |
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:
- Add
plus.mod
andjndi.mod
files (+ required jars in jetty lib). Which I did by hand (copypasting from the official Jetty distribution). - Include the loading of these modules in
start.ini
. - And then the rest was simply declaring the connection in
WEB-INF/jetty-env.xml
and a resource-ref inWEB-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.
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) |