[Design of JBossCache] - Re: JBoss Cache and JBoss MC
by bstansberry@jboss.com
I think it would be helpful if you described in a little more detail how you want to use the MC in JBoss Cache. We can already use the MC to build a configuration and pass it to the existing CacheFactory methods to instantiate the cache. This is what AS trunk already does for the web session and EJB3 caches. So I don't think that kind of thing is what you're talking about.
When you've mentioned this before I always had a vague notion in my head of using the MC to wire together the cache internals, i.e. build interceptor chains, plug in state transfer managers, etc. But what's never been clear at all to me is how this would work in terms of what the end user would configure. I wouldn't think we'd want 99% of end users having anything to do with anything beyond the existing Configuration object. I guess a goal is to allow the remaining 1% to override some stuff, e.g. add an extra interceptor.
(Adrian, +1 on the thanks for the cache-specific schema suggestion; I've written a few -beans.xml files to create a cache now, and this would be a big improvement. :-)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4077042#4077042
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4077042
18 years, 7 months
[Design of JBossCache] - Re: JBoss Cache and JBoss MC
by manik.surtani@jboss.com
Sorry for the slow response, been moving house and have had limited connectivity.
Adrian, thanks for the suggestion re: a cache-specific schema, that would certainly work very well.
Regarding exposing lifecycle and self-configuration, I don't think we can mandate that client code use an IOC framework, and I think we must assume that they don't use one. That still should not prevent me from using IOC internally within JBoss Cache.
Regarding a separate kernel per cache instance, I may be wrong here, but isn't this necessary to prevent namespace collissions? It is a perfectly valid usecase to have 2 cache instances in the same VM, with different configurations. Wouldn't the MC register bean instances under set names, and wouldn't these overwrite if the 2 cache instances share the same kernel instance?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4077032#4077032
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4077032
18 years, 7 months