The only real available library i could find was the Apache Commons Transaction Library.
Problems w/ Apache Commons Transctions
- Last release 2008 (3years)
- not generic
- dependency on a logging f/w – do we need a logger for a Map !?!
- i think i saw somewhere (prolly the doco) that it was not XA.
Features id like
- available collections should be generic
- changes should be batched until a rollback ( forget all changes) or commit.
- dirty reads etc should also be a feature.
- thread independent, different threads should be able to participate in different txs.
- views should also be transaction – e.g. Map.entrySet()
- XA would be nice just so the collection instance can participate in a two phase commit.
Infinispan is a full XA enabled Cache that also implements a ConcurrentMap since version 4.