mongodb - What is the simplest transaction framework in Java? -
given have simple task: process piece of info , append file. ok if dont have exceptions, may happen. if goes wrong remove changes file.
also, may have set variables during processing , homecoming previous state too.
also, may work database doesn't back upwards transactions (to best of knowledge mongodb not), rollback db somehow.
yes, can prepare issue file manually backuping file , replacing it. looks need transaction framework.
i dont want utilize spring monster this. much. , dont have elb container manage ejb. have simple java stand-alone application, needs transaction support.
do have other options instead of plugging spring or ejb?
if don't want utilize spring, seek implements simple two-phase commit mechanism: two-phase commit protocol
java mongodb transactions jta
No comments:
Post a Comment