Hi
I have a small servlet that uses the Geotools libraries. Is there a way that I can use Geoserver’s Geotools jar-files with my servlet instead of copying all the Geotools stuff again on the server?
regards
Stefan
Mit freundlichem Gruss
Stefan Ziegler
Leiter Aufsicht
Kanton Solothurn
Bau- und Justizdepartement
Amt für Geoinformation
Rötistrasse 4
4501 Solothurn
Telefon 032 627 75 96
Telefax 032 627 75 98
stefan.ziegler@anonymised.com
http://www.so.ch
Ziegler Stefan ha scritto:
Hi
I have a small servlet that uses the Geotools libraries. Is there a way that I can use Geoserver's Geotools jar-files with my servlet instead of copying all the Geotools stuff again on the server?
Hum, yes, I believe you can put the .class file of your servlet in the
GeoServer WEB-INF/classes directory, declare and map your servlet
in the GeoServer web.xml, and be done with it.
We almost have a more pluggable way to do the same that would allow
you to build a jar instead and have it plug in into GeoServer, but
we first have to either get rid of the Struts UI.
Alternatively I believe you can already build a custom RESTlet as a jar
and have it plug in into GeoServer without needing to touch any
configuration file, but I'm not sure about the details, Justin and
David (cc'ed) know more.
Cheers
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.