Can someone please confirm:
Would this then the correct usage of BatchModeTransactionManager in the context
I mentioned?
| BatchModeTransactionManager txMgr =
BatchModeTransactionManager.getInstance();
| txMgr.begin();
| child.clearData();
| child.putAll(recordVals.getValues());
| tx
"genman" wrote :
| Although there could easily be an API for handling atomic data clear/put,
there is none and will be none for many other similar situations, such as bulk
put or bulk remove. So, your best bet is to learn to like transactions.
"genman" wrote : I would say the DummyTransactio
What about in 2.0 beta? I didn't seem that say passage in the 2.0 documents.
Plus, the doc is a bit vague. Seems like I'm supposed to use one if I'm using
the JBoss app server (which I'm not), and use the dummy one if I'm using JBoss
cache standalone (which I am) - except that the dummy one is
"genman" wrote : There used to be a Node.putAll(Map map, boolean erase) method.
|
| The thread safe way (at the moment) is to use a transaction.
But ... I thought that transactioning was automatic and completely hidden away
from the user. Is that incorrect? If so, how would I go about wrap
Hi. I'm kicking the tires on integrating JBossCache (2.0beta) into an app of
mine. So far looks pretty good, but I've run into one small snag.
I would like to find a way to atomically replace the contents of a node - i.e.,
perform:
node.clearData()
followed by
node.putAll(map)
all while th