Andrea Aime wrote: > zze-M2S FRISON V ext RD-BIZZ-SOP ha scritto: > >> Hi, >> >> For now the only solution I have if I want to perform different queries >> on different feature types is to recreate a new DataStore and a new >> DataStore for each new request! :( >> > As far as I know udig is using just one instance of datastore for > multiple layers, but I may be wrong (not very familiar with udig internals). > This is the case Andrea.
The DataStore API really would like to to keep them as singletons, or in a catalog (as uDig and GeoServer do). There is a very simple example in GeoTools called Registry that slurps up all the shapefiles in a directory. But you can do something as simple as keeping your data connections in a java.util.Map. >> Of course it's temporary workaround because it's disastrous for >> performances. >> >> Well, I guess I'm not the first one who want to keep in memory a >> DataStore object (with its different FeatureStore objects) across >> different queries. Nobody could help me pleaaaase? >> > Vincent, from what I know, only udig is using the WFS data store, > so you're unfortunately the first hitting it in the wild.... > > Also, it seems the datastore mantainers are too flooded with work > to provide you any help... so, the only tangible help I can give you, > is to point you to the developer guide and suggest you try to > debug the datastore yourself :( > http://docs.codehaus.org/display/GEOT/Home > > If you have patches, we'll gladly accept them :-) > I thought this was more of an issue with creating multiple concurrent datastores then specific problems with WFS. Jody ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
