Log in to follow, share, and participate in this community.
Thread Gravitation and POJO Cache
Gravitation and POJO CacheI was working on a solution for JBCACHE-1111 when I realized that essentially I need to wrap every cache call with:
cache_.getInvocationContext().getOptionOverrides().setForceDataGravitation(true);
This is duplica...
Thread Need to make enhacements to CacheListener API
Need to make enhacements to CacheListener APIDo to the recent changes we made with CacheListener behavior I need to refactor the POJO notification implementation. In order for me to deliver reliable detach and collection remove notifications, I have to do some a...
Thread Classloader leak via CacheImpl.invocationContextContainer
Classloader leak via CacheImpl.invocationContextContainerThe handling of InvocationContext will leak JBC's classloader. An InvocationContext gets stored in a ThreadLocal and doesn't get cleared. This is by design to avoid creating a new InvocationContext for each request, b...
CacheListener callbacks for block/unblockMore stuff that's too late for the 2.0 API... This is morning shower thinking, so not very fleshed out. What do people think about adding CacheListener callbacks related to block/unblock events? Vladimir has done so...
Thread ClusteredCacheLoader should be configured as shared?
ClusteredCacheLoader should be configured as shared?Should CCL be configured as shared? It doesn't do any writes anyway, and configuring it as shared may solve some issues. Think it needs to be shared to avoid the "Major" issue noted below: ClusteredCacheLoader.remove...
Binding proxy to Cache in AS JNDIJust realized that the standard way of providing remote access to the cache by binding a proxy in JMX will no longer work with 2.0. The usual JRMPProxyFactory approach works with MBeans, which in 2.0 means the CacheJ...
URLs to a cacheWhat do people think of a URL based approach to getting cache contents? E.g., using a java.net.URL with something like cache://java:/MyCacheName?fqn=/mydata/mynode&key=key to retrieve the contents of a node in the...
Excessive type safety warnings ...Eclipse lists over 4000 warnings for JBossCache, mostly to do with type safety. I started trying to fix some of the type safety warnings by adding type parameters to declarations of Cache, Node, etc. The problem is, ...
Can't control (Tree)Cache via JConsoleI'm using JDK 1.6, and JBossCache 2.0.0 (BETA). I create a TreeCache, run it, test it, with no problem. I put a listener to track changes to the (Tree) cache. I registered the cache with the MBeanServer. No problem. ...
PojoCacheJmxWrapperMbean.getInternalLocation(Object pojo)Jason, The above method is in the 2.0 MBean interface for PojoCache. Do you want it there? The interface is really spare, and then this method which seems kind of detailed. Just double checking. In PojoCacheJmxWrapp...
Remove Configuration.serviceNameThe Configuration class has a "serviceName" property that I can't find a good use for. I'd like to get rid of it as it leaks JMX concerns into the core code. CacheMgmtInterceptor was using it to figure out a value to...
Channel creation - mux vs. old styleI think we are trying too hard not to fail in startService() if there is an issue with the mux configuration. We do this: 1) If a JChannelFactory has been injected into the config, use it and propagate any exception...
Implicit transactions and opt lockingAt the moment opt locking, when used outside the scope of a transaction, creates an implicit transaction for the scope of a call. The problem I have here is that at the moment a rollback of an implicit transaction is...
Thread Rigid design of state transfer manager, factories, integrato
Rigid design of state transfer manager, factories, integratoIn one of our projects, we need to keep remote systems in sync with cache content. When a cluster node that already has some transient state connects or reconnects the cluster, incremental state update notifications m...
Thread JBCACHE-1025: JBossCache mbean registration fails on WebSphe
JBCACHE-1025: JBossCache mbean registration fails on WebSpheHere's more information on this issue - At least two JBossCache customers have reported that JBC fails when the cache is started on WebSphere 6.1 due to an exception indicating that an attempt has been made to regist...
JDBC Cache Loader issuesHi, we are using JDBC Cache loader as a read only cache. We are pre-loading all the data at the server startup. But we observe that every time we make cache request for reading data in the cache, the configured jdbc ...
Thread Configuration & CacheImpl overlap of concerns
Configuration & CacheImpl overlap of concernsThere's a lot of logic embedded in CacheImpl.start() and create() as to what specific object instances are created. For example, the JGroups Channel, or the InterceptorChainFactory are directly constructed here and us...
PojoInstance: ref count & notificationHi, I am trying to build an adapter on top of CacheListener to create (to me useful) Pojo notifications. Unfortunately, I cannot determine if a pojo is being multi-attached or detached because PojoInstance's ref count...