Essentially, we are looking for transaction support without JTA. Thus far, all the JTA implementations we have found (JOTM, SimpleJTA, etc) requires some database or file structure to log transaction logs. We're trying to set up a clustered environment where there are no single points of failure. Thus making most JTA implementations problematic.
Is it possible to have limited row level locking and releasing without JTA implementation? We want to create a very simple and limited support for transactions like this: {start transaction or lock a row in table} | val = get(key); | val++; | put(key, val); | {release transaction or a row in table} I am using TreeMap's _lock() and releaseAllLock() function, and it seems to be doing absolutely nothing. treeMap._lock(fqn, 0, true); | if(null == treeMap.getObject(fqn)){ | treeMap.putObject(fqn, new Integer(0)); | } | else{ | //Integer intVal = (Integer) rMap.get(key); | Integer intVal = (Integer) treeMap.getObject(fqn); | | int iVal = intVal.intValue(); | System.out.println("Got: " + intVal + " Put: " + (iVal+1)); | iVal++; | treeMap.putObject(fqn, new Integer(iVal)); | | } | treeMap.releaseAllLocks(fqn); I have two machines running this code, and I'll get situations where get() returns the same number multiple times. Essentially it looks like the put isn't getting replicated across. Any other ideas on how to do row level locking perhaps? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953582#3953582 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953582 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user