|
From: Mathieu B. <mba...@ar...> - 2010-10-12 15:28:58
|
Hi Justin, > I enjoyed our taks at foss4g :) me too! I have been working a lot with GeoServer since then, and I really like the product. I put together some instructions on the Enterprise Linux GIS page on how to install it on CentOS 5, with LDAP authentication: http://wiki.osgeo.org/wiki/Enterprise_Linux_GIS#How_to_deploy_GeoServer_2.0_on_Tomcat_5_.28standard_packages.29 I have also been working on the OSGi packaging of GeoTools that we discussed back then. I have made some progress in my understanding of the factory mechanism in an OSGi context and could hack some loading of simple factories between two separate bundles using fragments and context classloader, but no satisfactory generic solution yet. I'm on the field in Central Asia for the next ten days, but when I'm back, I'll describe my research on this list along with ideas on how to go further. > PostgisNGDataStoreFactory factory = new PostgisNGDataStoreFactory(); > Map params = new HashMap(); > params.put(PostgisNGDataStoreFactory.DATASOURCE.key, yourDataSource); > JDBCDataStore dataStore = factory.createDataStore(params); > Hope that helps. Yes, it worked directly. Thanks a lot! Mathieu |