What it sounds like you need is cache replication.
What's the concern about public versus private?
Yep. It 's something like this but the local (public components) and core cache (non public) cant work in cluster (using replication) because i have different public component in different servers so i don't interested in the content of my server 1 can be replicated to core ant the core replicate it to the server 2.
On the other hand a client can request an object to public component, the public component look for it in its local cache , if the object isnt founded , the public component make a request to the core component ant this look for it in the core cache and return the result to the public component, the public component caches it in its local cache. In this case i need when the object is removed in the core this can be removed in the local.
Im trying with JBoss cache notifications, talking to MBean server and register a listener for remove node event
I need an example of how to connect a remote MBean server using JMX or another idea of how to do this.
Perhaps a TcpCacheLoader/TcpCacheServer?
I was researching about this topic and seem to solve my problem I'll try it