[jboss-user] [JBoss Cache Users] - Re: MVCC leading to deadlocks in synchronous replication mod

2009-12-09 Thread spennec
We'll try this out, thanks! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269732#4269732 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269732 ___ jboss-user mailing list jbo

[jboss-user] [JBoss Cache Users] - Re: MVCC leading to deadlocks in synchronous replication mod

2009-11-30 Thread spennec
Looks like the JBoss people are back on the forum :) Galder, could you take a look at this topic please? I'd love to hear your thoughts on it... Thanks! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268224#4268224 Reply to the post : http://www.jboss.org

[jboss-user] [JBoss Cache Users] - Re: MVCC leading to deadlocks in synchronous replication mod

2009-11-18 Thread spennec
I'm interested in an answer to this problem, too... Aren't JBossCache comitters monitoring this forum anymore? It's been almost two weeks since this problem has been posted, and still no answer... If it turns out the situation described by vsevel is actually a bug and not a misuse, then JBossC

[jboss-user] [JBossCache] - Re: TreeCache Listener behaviour

2008-01-25 Thread spennec
Ok, thanks for your answer Manik View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123549#4123549 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123549 ___ jboss-user mailing lis

[jboss-user] [JBossCache] - TreeCache Listener behaviour

2008-01-25 Thread spennec
Hello, In a clustered environment, both instances of the servers use TreeCache, in replicated mode. If I issue a put(), this call is catched by the listeners. What I would like to do is allow a remote listener to recieve the value that has been put, and be able to remove it from the cache unde

[jboss-user] [JBossCache] - Re: JBCache 2.0.0 / Weblogic 9: Exception while trying to ro

2008-01-23 Thread spennec
Hi Manik, Thanks for your answer :) As you guessed, the client java program does not know anything about JBCache. I'm going to send this link to our Weblogic-Guru and see with him what can be done. About the JIRA entry: should I really open a feature request for this? I did it over here http:

[jboss-user] [JBossCache] - JBCache 2.0.0 / Weblogic 9: Exception while trying to rollba

2008-01-23 Thread spennec
I'm experiencing a strange problem, with TreeCache seemingly trying to rollback a Weblogic transaction. Here's the setup: - Two weblogic 9 servers, running a clustered application. - Each night, the cached data must be refreshed. Since this process requires other external processes to succeed be

[jboss-user] [JBossCache] - Re: Replication Queue behaviour

2008-01-08 Thread spennec
ok, thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117991#4117991 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117991 ___ jboss-user mailing list jboss-user@lists.jb

[jboss-user] [JBossCache] - Replication Queue behaviour

2008-01-08 Thread spennec
Hello, I have a question about the replication queue's behaviour. If one node is modified and put in the queue, and is then modified again. Does the queue replicate all the node's modifications, or only the latest? I would think that it only replicates the freshest data, but just want to make

[jboss-user] [JBossCache] - Re: Optimistic Locking

2007-12-20 Thread spennec
Hi Manik, Thanks for the reply! :) You're right: it looks like MVCC is exactly what I need. So I'm looking forward to TreeCache 3.x! :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114555#4114555 Reply to the post : http://www.jboss.com/index.html?module

[jboss-user] [JBossCache] - Optimistic Locking

2007-12-10 Thread spennec
Hello, I read the documentation and didn't understand a part of it: anonymous wrote : | For example, if a transaction calls cache.getRoot().getChild( Fqn.fromString("/a/b/c") ) , nodes a, b and c are copied from the main data tree and into the workspace. The data is versioned and all calls

[jboss-user] [JBossCache] - Re:

2007-11-14 Thread spennec
Manik, Thanks for the info on LockParentForChildInsertRemove, I'm going to try that. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104847#4104847 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104847 _

[jboss-user] [JBossCache] - Re:

2007-11-14 Thread spennec
Here's what's happenning at the moment: A transaction: - put some data in the cache. Another transaction: - modify its definition -> remove() is called - update its value -> put() is called with the new value The problem is that if I call get() on that node between the remove() and the put(),

[jboss-user] [JBossCache] - Re:

2007-11-14 Thread spennec
Thanks for your reply :-) Should I use a specific Node Locking Scheme to ensure that behaviour? At the moment, I use Optimistic scheme (and, consequently, no Isolation Level). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104504#4104504 Reply to the post :

[jboss-user] [JBossCache] - "Manually" acquiring a lock on a node

2007-11-14 Thread spennec
Hello, In my project, we cache the result of a computation. This computation takes quite some time (5-6 seconds) to be done. When the definition of the computation is modified, the node corresponding to the modified computation is removed. At that time, the computation is updated, and its new

[jboss-user] [JBossCache] - Re: Strange ClassCastException in OptimisticCreateIfNotExist

2007-11-09 Thread spennec
Hi Manik, Sorry, I just haven't had time today to test the build. I'll test it Monday and provide you with feedback. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103286#4103286 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mod

[jboss-user] [JBossCache] - Re: Strange ClassCastException in OptimisticCreateIfNotExist

2007-11-08 Thread spennec
Manik, Wow, there are 58 tests failures... I just can't use this as a production component... I'll build it without running the tests just to check that the fix resolved my problem, and keep you informed. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=410316

[jboss-user] [JBossCache] - Re: Strange ClassCastException in OptimisticCreateIfNotExist

2007-11-08 Thread spennec
That was a proxy problem, I am downloading the code right now... Will keep you informed :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102922#4102922 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102922 __

[jboss-user] [JBossCache] - Re: Strange ClassCastException in OptimisticCreateIfNotExist

2007-11-08 Thread spennec
Manik, I tried to checkout the source code, based on the page I found http://docs.jboss.org/process-guide/en/html/svnaccess.html but I cannot connect to either svn.jboss.org, nor anonsvn.jboss.org. Might be my company's firewall, or something else, I'm not sure. Could you build a jar and give

[jboss-user] [JBossCache] - Re: Strange ClassCastException in OptimisticCreateIfNotExist

2007-11-08 Thread spennec
Hi Manik, The fix was commited quickly, thanks! Regarding listeners, I am using REPL_ASYNC. What seems strange is that with Replication on, the data is refreshed twice: with the replication and when the listener is called. What I want to do is just reload the data when a node is removed. I gu

[jboss-user] [JBossCache] - Re: Strange ClassCastException in OptimisticCreateIfNotExist

2007-11-07 Thread spennec
Manik, Great to see that the reason is now clear! :-) If I checkout and build TreeCache from the source, will the result be as stable as the 2.0.0 version that I am using? Or are you in heavy development and there may be parts of the products that are "work in progress"? I certainly would like

[jboss-user] [JBossCache] - Re: Strange ClassCastException in OptimisticCreateIfNotExist

2007-11-07 Thread spennec
I changed a few things and might have moved a bit forward The ClassCast with my class happened with the put being done this way: | final InvocationContext invocationContext = treeCache.getInvocationContext(); | final Option optionOverrides = invocationContext.getOptionOverrides(); | o

[jboss-user] [JBossCache] - Re: Strange ClassCastException in OptimisticCreateIfNotExist

2007-11-07 Thread spennec
Well I must admin that it's very strange to me, too. I've seen the line of code that results in the exception, but don't see why my class is being returned at that point. I don't have a test case that can recreate this. Actually, I don't have the slightest idea on how to write a test case that

[jboss-user] [JBossCache] - Re: Strange ClassCastException in OptimisticCreateIfNotExist

2007-11-07 Thread spennec
Thanks for the advice regarding Options. What I always do is these calls: final InvocationContext invocationContext = treeCache.getInvocationContext(); | final Option optionOverrides = invocationContext.getOptionOverrides(); I guess that I recieve a new option object each time, or at least one

[jboss-user] [JBossCache] - Re: Strange ClassCastException in OptimisticCreateIfNotExist

2007-11-07 Thread spennec
Manik, The localMode variable is not always set to 'true'. When I load the cache at startup-time, both members of the cluster fill their cache based on the data that is in the database. The both fill their cache in local mode, so that one does not invalidate the other's data. Once the app is l

[jboss-user] [JBossCache] - Re: Strange ClassCastException in OptimisticCreateIfNotExist

2007-11-02 Thread spennec
Hi Manik, I've sent a bunch of logging statements to a file, using log4j and a TRACE level appender. This situation is a real problem for my project, thanks a lot for your help! :) Here they are: | | | 2007-11-02 16:02:43,986 413229 TRACE [org.jboss.cache.ReplicationQueue] (Timer-7:)

[jboss-user] [JBossCache] - Re: Strange ClassCastException in OptimisticCreateIfNotExist

2007-11-02 Thread spennec
Hello Manik, Here is what I hope will help you. Since I'm not too knowledgable about TreeCache's internals, I selected a few logs that I thought were representing of the situation just before the exception. | <14:26:40,328> :72> | | <14:26:40,328> | | | <14:26:40,328> :

[jboss-user] [JBossCache] - Strange ClassCastException in OptimisticCreateIfNotExistsInt

2007-11-02 Thread spennec
Hi all, I'm experiencing a very strange problem, and would like some insight on what's really happening. I am using TreeCache 2.0.0, under Weblogic 9.2.2. The app is deployed in a cluster with two members. The cache is configured with REPLY_ASYNC mode, and Optimistic Node Locking Scheme. At s

[jboss-user] [JBossCache] - Re: How TreeCacheListener works

2007-10-22 Thread spennec
Thanks for your reply, Manik! :) I think my understanding may not be correct after all: at the time, I was trying to recieve a notification when a pair key-value was removed from inside a given node. And this is not possible, is it correct? I now create a new node for each of my data and remove

[jboss-user] [JBossCache] - Cache loading in a clustered environment

2007-08-30 Thread spennec
Hello, I'm in front of a very strange situation here: There are two members in my cluster. Each instanciates a treecache object, with the same properties. (Mode INVALIDATION_ASYNC, Optimistic locking, TreeCache V1.4.1SP4). When they start, each of them loads the initial state of the cache from

[jboss-user] [JBossCache] - How TreeCacheListener works

2007-08-28 Thread spennec
Hello, I'm trying to use a TreeCacheListener in the following situation: - TreeCache version: 1.4.1 SP4 - There is a cluster with two members - TreeCache is in mode INVALIDATION_SYNC and OPTIMISTIC locking scheme When a piece of data is modified, I remove it from the cache. I expect the corresp