On Fri, Sep 9, 2011 at 4:03 PM, Justin Deoliveira <[email protected]> wrote: > > > On Fri, Sep 9, 2011 at 7:06 AM, David Winslow <[email protected]> wrote: >> >> Some users I've spoken to have asked why we do the connection test at >> startup - they suggested that instead we skip the connections during the >> catalog loading and have a tool in the GUI for doing the same thing on >> demand, but with handy links to the broken datastores, etc. Having the >> capabilities document hide layers instead of generating invalid XML would be >> a nice step in the same direction IMHO. > > http://jira.codehaus.org/browse/GEOS-3712 >> >> Just throwing out an idea, hope it's not too much of a tangent. > > I think the ideas proposed by Andrea make sense... in the short term i think > an acceptable solution could be to add a flag that controls whether the > capabilities doc should fail fast or just hide the misconfigured layer, > replacing it later with the more adaptive approach described by Andrea.
I believe that running Cagalog.validate(...) on each layer should not be too slow... hopefully one does not have too many of those stores that take long to be created, which are the databases ones normally. And on trunk we have the resource pool using the soft caches, so unless the server is really under stress many stores should be cached already The thing is, we have to determine that something is misconfigured or unavailable _before_ starting to write the xml for it, otherwise there is just no salvation, you end up with a broken xml and/or a service exception. Cheers Andrea -- ------------------------------------------------------- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ------------------------------------------------------- ------------------------------------------------------------------------------ Why Cloud-Based Security and Archiving Make Sense Osterman Research conducted this study that outlines how and why cloud computing security and archiving is rapidly being adopted across the IT space for its ease of implementation, lower cost, and increased reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/ _______________________________________________ Geoserver-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-devel
