Originally posted by Stan James:
What's a good external sync, Max? Maybe a database? This seems really clunky:
start transaction
read a row for update
do the synchronized code
update the row
end transaction
Boy, that's a really excellent question. You could use a shared File, but with virtual file shares and such, you're fishing for trouble there. You could use an external service: say a locking external webservice or
EJB. But that's clunky too, and prone to network issues.
I'm amazed to see myself type this: but yes, I'd say a database: with some sort of transactional activity.
What do you think, Stan? I'm very interested in hearing your thoughts.
M