Igor Minar wrote:
I haven't looked at v2.2 JDBCProvider, nor have I thoroughly studied all the JSPWiki source code, but unless there are some major complications due to some internal caching within the WikiEngine, I'd use similar strategy for data consistency management(versioning) as Hibernate or ActiveRecord (from RoR) are using.

That means to have one int field per each record in the table that is set to 0 by default and increments with every change to that record. To successfully update a record the version number must be unchanged since your last read, otherwise you are updating newer version of the record than the one you made modifications to.

This is pretty basic strategy that can be used even in clustered environment (things can get complicated a bit if caching is used as well). This could solve the problem you saw, what do you think?

cheers,
Igor

Hi Igor,

Well, I can't speak to any expertise with exactly what JSPWiki does
with its caching, but it certainly has a cache. If someone were
using a DB backend it might be necessary to turn off JSPWiki's
cache to keep things synchronized across multiple engines since the
caching function would mess with that.

I'm currently building an InterWikiPlugin that has a subclass that
will do InterWikiDiffs, which will then be subclassed once again to
do InterWikiSynchro. This is currently being designed as more of a
manual (user-initiated) process but the basic code might be useful
(at the front end rather than the back) for synchronization between
wikis. Just a thought anyway...

I'm not really sure what the best solution would be for clusters
from the backend, and I'm thinking we'd need to really look at this
a bit more seriously than (at least) I have so far. Others may have
a lot more experience than me in this area.

Murray

...........................................................................
Murray Altheim <[EMAIL PROTECTED]>                              ===  = =
http://www.altheim.com/murray/                                     = =  ===
SGML Grease Monkey, Banjo Player, Wantanabe Zen Monk               = =  = =

       In the evening
       The rice leaves in the garden
       Rustle in the autumn wind
       That blows through my reed hut.  -- Minamoto no Tsunenobu
_______________________________________________
Jspwiki-users mailing list
[email protected]
http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users

Reply via email to