-
1. Re: CacheLoader transactions
jerrygauth Feb 2, 2006 5:09 PM (in response to jerrygauth)This may be a non-issue for the ActivationInterceptor. Since transactions are only handled by JBossCache on remote nodes and evictions are never forwarded to remote nodes, it looks like the transaction code in the ActivationInterceptor will never be executed. I've tried various operations using transactions (inserts, removals, evictions) in a cluster and the interceptor's transaction code never seems to be invoked.
-
2. Re: CacheLoader transactions
manik Feb 3, 2006 6:00 AM (in response to jerrygauth)1) This is a possibility, although if the transaction doesn't commit should we count this? Then again, depending on the CacheLoader implementation, maybe we should count this - JDBC cache loaders actually make JDBC calls during the prepare phase, and then call a commit() on the JDBC connection when cacheloader.commit() is called. So these operations should really be counted.
2) You're right, this is not reasonable.
3) Hmm, don't like this - will break a lot of custom CacheLoaders out there.
4) Again a possibility. -
3. Re: CacheLoader transactions
jerrygauth Feb 9, 2006 7:57 AM (in response to jerrygauth)Implemented in ActivationInterceptor and CacheStoreInterceptor using option 4 (counting in prepare phase, retrieving count and incrementing statistic during commit phase)