cholmes@anonymised.com wrote:
XMLConfigReader. Look for the calls to the XMLConfigReader, as that's
how the loading is done. I believe you set the current GeoServer
instance in the web container. Sorry, this isn't too helpful, I don't
remember clearly enough but I'll get back to you in a few days.
The functionality you want is captured as a Struts Action on the
programming side, I can't remember the name but here is the url.
http://XXXX:8080/geoserver/admin/loadFromXML.do
It may have our limitied security in place, let the list know if it gets
in the way of your mad plan.
You know since we have generated schema information now (rather than
forcing everyone to type schema.xml files),
it would be nice to simply derivce the list of types from Postgis rather
than force the configuration process.
That is "publish" everything in the DataStore - such an idea would
reduce setup time - and allow for requested workflow of having GeoServer
notice new Postgis tables.
I had origionally though of a user interface button, by having it
dynamic would be more fun.
Jody
I need to know how to tell Geoserver that I've added new data in my
PostGIS database.
I thought I could create with some java code the folder
"geoserver/data/featureTypes/<new data>/" and the "info.xml" file.
Is there a simple way to do this? Once the folder and the info.xml file
are created, how to refresh Geoserver memory? Do I have to restart
Geoserver? I suppose there is a way to reload the data as we can do
it from the web interface, isn't it? regards.