[jboss-user] [JBossCache] - Re: Node locking question

2007-04-24 Thread darose
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

[jboss-user] [JBossCache] - Re: Node locking question

2007-04-24 Thread [EMAIL PROTECTED]
Probably no good reason; i.e. BatchModeTransactionManager is relatively newer so the habit was to use Dummy. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040307#4040307 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4

[jboss-user] [JBossCache] - Re: Node locking question

2007-04-24 Thread genman
I forgot about that JNDI bind part. Any reason why unit tests don't use BatchModeTransactionManager instead? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040290#4040290 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4

[jboss-user] [JBossCache] - Re: Node locking question

2007-04-24 Thread [EMAIL PROTECTED]
The differently named version already exists -- see http://wiki.jboss.org/wiki/Wiki.jsp?page=BatchModeTransactionManager. DummyTransactionManager is a unit testing tool, and one of the things it does is when you retrieve the singleton instance, it registers itself in JNDI as java:/TransactionMa

[jboss-user] [JBossCache] - Re: Node locking question

2007-04-23 Thread darose
"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

[jboss-user] [JBossCache] - Re: Node locking question

2007-04-23 Thread genman
http://jira.jboss.com/jira/browse/JBCACHE-1033 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040046#4040046 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040046 ___ jboss-u

[jboss-user] [JBossCache] - Re: Node locking question

2007-04-23 Thread genman
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. Manik s. (who often haunts these forums) came up with the documentatio

[jboss-user] [JBossCache] - Re: Node locking question

2007-04-23 Thread darose
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

[jboss-user] [JBossCache] - Re: Node locking question

2007-04-20 Thread genman
Look at this example: http://labs.jboss.com/file-access/default/members/jbosscache/freezone/docs/1.4.0/TreeCache/en/html/transactions.html View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039457#4039457 Reply to the post : http://www.jboss.com/index.html?mod

[jboss-user] [JBossCache] - Re: Node locking question

2007-04-20 Thread darose
"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

[jboss-user] [JBossCache] - Re: Node locking question

2007-04-20 Thread genman
There used to be a Node.putAll(Map map, boolean erase) method. The thread safe way (at the moment) is to use a transaction. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039436#4039436 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting