On Mon, 14 Nov 2005, Lena Pahl wrote: > > Hi! > Uhm...well, my problem is that I am using Geotool's WFSDataStore to > connect to GeoServer. As far as I can see Geotools and GeoServer are > working together very well for my purposes. But now when coming to the > management of transactions I'm sort of confused. GeoServer supports both > GetFeatureWithLock and LockFeature but Geotools (being an essential part > of GeoServer) doesn't support locking in the WFS plugin of all plugins. > I find this a bit weird or am I wrong and seeing problems where there aren't > any? Am I right that when allowing transactions via Geotools and GeoServer > there is no handling when multiple users try to edit the same data at the > same time?
Well, you have to look at the motivations of why things were written. The WFSDataStore was written for uDig, since communicating with WFS and doing feature updates is very important. But they didn't have time to implement full feature locking, on any of the datastores. GeoServer _can_ do a cascading WFS, _using_ the WFS DataStore, but it's not hugely important, and so we didn't add locking features there, though for all the backend data formats that we do support, feature locking is there. Feature Locking _is_ completely in the GeoTools API, the WFSDataStore just doesn't yet support it. > Would I be able to implement feature locking myself? Where would I start > doing this? Probably, and looking at the code it looks like David did a majority of the work on this, he'll have to tell us why it's not in there, what happened to the WFSFeatureLocking class. But hopefully he can direct you to finish the work off, and test it. > Sorry, I'm a bit confused about this. Because to me it seems that if > I'm sending a simple XML document (containing a GetFeatureWithLock > element) to GeoServer I'm able to lock features in a DB while I'm not > able to do this accessing GeoServer via Geotools. Yes, it would be a nice capability to have, hopefully you can help us implement with David's advice. est regards, Chris > I would be very grateful to get some advice on this. > Thank you! > Ciao, > Lena > > > Chris Holmes <[EMAIL PROTECTED]> schrieb am 13.11.05 14:46:47: > > Looking at the WFSDataStore code it doesn't appear as if it's supported. > There's code to deal with it, but it looks like the WFSFeatureLocking, > which is the class one would excpet to work against the locking api, is > not actually returned by the DataStore. David, any insight? Did that get > cut at the last minute or something? > > Chris > > On Sun, 13 Nov 2005, Lena Pahl wrote: > > > > > Hi there! > > How can I lock features when using WFSDataStore? Does someone have a code > > snippet to show me how this is supposed to work? > > Thanks a million! > > Best regards, > > Lena > > ______________________________________________________________ > > Verschicken Sie romantische, coole und witzige Bilder per SMS! > > Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193 > > > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by: > > Tame your development challenges with Apache's Geronimo App Server. Download > > it for free - -and be entered to win a 42" plasma tv or your very own > > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > > _______________________________________________ > > Geotools-gt2-users mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > > > > -- ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
