RE: sync

2002-10-14 Thread Glen Daniels
w for implementation differences. --Glen > I don't get it, the 1st sync will sync on the session - which > I believe > should be ok since that's will be the same session object > each time (based > on what scope you have - either serlvet session or > appSession). The 2nd

RE: sync

2002-10-14 Thread Doug Davis
I don't get it, the 1st sync will sync on the session - which I believe should be ok since that's will be the same session object each time (based on what scope you have - either serlvet session or appSession). The 2nd sync will sync on something that is local (or specific) to t

RE: sync

2002-10-14 Thread Glen Daniels
> Locking the String or Object that is placed in the hashtable > will do it > since that is presistent across all threads - and it doesn't > really matter > which kind of Object it is - we just need something/anything > to sync on. The problem is that you want only o

RE: sync

2002-10-14 Thread Doug Davis
Locking the String or Object that is placed in the hashtable will do it since that is presistent across all threads - and it doesn't really matter which kind of Object it is - we just need something/anything to sync on. There really isn't much to say about what's happenin

RE: sync

2002-10-14 Thread Glen Daniels
ot kicked off of irc but I think the problem would be > solved by > something like this: > String lockObject = null ; > Object service = null ; > sync (session) { > Hashtable locks = session.get("AxisLocks"); > if ( locks == null ) session.set("AxisLoc

sync

2002-10-14 Thread Doug Davis
proach below at least allows other services to be invoked. -Dug Glen - got kicked off of irc but I think the problem would be solved by something like this: String lockObject = null ; Object service = null ; sync (session) { Hashtable locks = session.get("AxisLocks"); if ( locks == null

sync

2002-10-14 Thread Doug Davis
Glen - got kicked off of irc but I think the problem would be solved by something like this: String lockObject = null ; Object service = null ; sync (session) { Hashtable locks = session.get("AxisLocks"); if ( locks == null ) session.set("AxisLocks", locks = new

RE: sync in JavaProvider

2002-10-14 Thread Glen Daniels
> It looks like (according to cvs) you added the sync blocks in > JavaProvider and its cause use some problems. > I'm trying to understand why those sync blocks were added. > From what I can > tell they don't prevent multiple threads from clobbering each others >

sync in JavaProvider

2002-10-10 Thread Doug Davis
Glen, It looks like (according to cvs) you added the sync blocks in JavaProvider and its cause use some problems. I'm trying to understand why those sync blocks were added. From what I can tell they don't prevent multiple threads from clobbering each others service object that&#