I'd like to use the MC to wire together cache internals. The cache is basically few
core objects (CacheImpl, UnversionedNode) some services (CacheLoaderManager, RPCManager,
Notifier, CacheMarshaller, BuddyReplicationManager) and a bunch of interceptors in front
of the core objects (TxInterceptor, CacheLoaderInterceptor, etc etc). The relationship
between these objects are all controlled by the cache.create() method when the cache
starts, which uses a Configuration object to determine which services and interceptors are
needed and how they are configured.
This is where I think the MC can help; where the services and interceptors can be
configured in a beans.xml file, which would control the implementations of each
service/interceptor used as well as their relationship, e.g., inject a notifier into the
NotificationInterceptor, a CacheLoaderManager into a CacheLoaderInterceptor, etc etc.
Regarding end users configuring a -beans.xml file, I would like to expose this as a
possibility for "advanced" users, but also provide a much simpler configuration
file for more typical use cases (no customisation of interceptors, notifiers, rpc
managers, etc., but simple stuff like eviction policies, cache loaders as well as
timeouts, cache modes, etc).
Maybe a well-designed cache-specific schema would allow me to achieve both in a single
file.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4077238#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...