[jboss-user] [JBossCache] - Re: how to support treecache transaction in CMT

2006-08-21 Thread confuz
Currently as my understand. the treecache only support two type transactions 1. new instance putting can rollback. 2. remove instance from cache can rollback. i think that is a limitation for treecache but can not found any explication about that in the treecache document. View the original post

[jboss-user] [JBossCache] - Re: how to support treecache transaction in CMT

2006-08-20 Thread confuz
"[EMAIL PROTECTED]" wrote : That looks like it should work. The cache should be participating in the tx as a Synchronization, and when the tx rolls back, the cache modifications should roll back. | | What specifically do you do in "cacheoperation"? the session bean method will invoke this

[jboss-user] [JBossCache] - how to support treecache transaction in CMT

2006-08-20 Thread confuz
Dear All, I used TreeCache 1.4.0.GA and Jboss 4.0. currently need to support cache transaction in CMT. in the session bean method, the db operation will be rollbacked while cache operation won't when exception is threw. how to support cache transaction in cmt? Thanks for any help. code

[jboss-user] [JBossCache] - Re: Running POJOCache error

2006-08-08 Thread confuz
yes View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963949#3963949 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963949 ___ jboss-user mailing list jboss-user@lists.jboss.org

[jboss-user] [JBossCache] - Re: cachelistener configuration

2006-08-07 Thread confuz
For 2 I found the result affect by passivation configuration. once it configured as false, program runs well. you can view my other thread for the test resule. maybe i misunderstand the meaning of the configuration element http://www.jboss.com/index.html?module=bb&op=viewtopic&t=87932 View the

[jboss-user] [JBossCache] - Re: TreeCache performance with 1, 000, 000 nodes

2006-08-07 Thread confuz
Has anybody test this issue or it just my PC's problem? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963691#3963691 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963691 ___

[jboss-user] [JBossCache] - TreeCache performance with 1, 000, 000 nodes

2006-08-03 Thread confuz
Hi, For currently evict policy only support node level. so I use one onde to store one object. but I hit some problem when implement that. Had anyone tried put 1,000,000 nodes in TreeCache. when using JDBC cache loader(local mysql database), the performance is quite poor while BdbjeCacheLo

[jboss-user] [JBossCache] - Re: Running POJOCache error

2006-08-03 Thread confuz
"[EMAIL PROTECTED]" wrote : 1. PojoCache does not support pure eviction. That is, it will support pure cache loader (persistency) or passivation (eviction + cacheloading). | | 2. Yes. For point 1 , i wrote following test code | package org.jboss.cache.passivation; | | import java.io

[jboss-user] [JBossCache] - Re: Eviction Policy problem cache clear

2006-08-02 Thread confuz
Had you applied a cache loader? and maybe the cached object will be cleaned after 15 seconds as your configuration. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962717#3962717 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=re

[jboss-user] [JBossCache] - Re: Eviction Policy and configuration issues

2006-08-02 Thread confuz
I don't know it is a bug or is my misunderstand. Once the number of nodes not exceeds the maxNodes value in region, the ecvit policy will not check the timeToLiveSeconds and maxAgeSeconds values. As my understand, timeToLiveSeconds and maxAgeSeconds should work regardless the number of nodes i

[jboss-user] [JBossCache] - Re: Running POJOCache error

2006-08-02 Thread confuz
Ben, Thanks for you response, that's my careless. now the program works well. And other need to clear. As my understanding, the main distinguish between TreeCache and PojoCache 1. PojoCache only support in-memory(not support passivate to disk or other sources, once passivate, the object will

[jboss-user] [JBossCache] - Running POJOCache error

2006-08-02 Thread confuz
Hi All, I ran pojo cache, but hit error, following is the code and errors | package org.jboss.cache.data; | | import java.util.List; | | /** | * @author Ben Wang | * @@org.jboss.cache.aop.AopMarker | */ | public class Person { |protected String name; |prote

[jboss-user] [JBossCache] - cachelistener configuration

2006-07-27 Thread confuz
Hi All, How to configure the cache listener in the xml configuration file? and I tested the POJOCache with 1.4.0.GA use policy and cacheloader like follow | org.jboss.cache.aop.eviction.AopLRUPolicy | | | | | 5 | |

[jboss-user] [JBossCache] - Re: Problem using FileCacheLoader

2006-07-25 Thread confuz
"genman" wrote : | In terms of design, it's a good idea to make each tree node represent a relational database row (fixed in size), rather than store the contents of an entire database table. | | For example, if you were storing customers, each customer should have its own node. | Hi

[jboss-user] [JBossCache] - Eviction Policies

2006-07-24 Thread confuz
Hi, I found that statement in the jbosscache document "Eviction policies specify the behavior of a node residing inside the cache" , that means the policy only support NODE level? currently, I need the such policy that support on node's value level. E.G set MAXVALUE of a node, if the number