JBoss 3.2.7RC1
It would be nice to be able to do this:
Code:
<code>
<mbean code="org.jboss.cache.TreeCache" name="jboss.cache:service=MyHibernateTreeCache">
...
</mbean>
<mbean code="org.jboss.hibernate.jmx.Hibernate" name="jboss.har:service=Hibernate">
...
<attribute name="CacheProviderClass">org.jboss.hibernate.cache.JMXTreeCacheProvider</attribute>
<attribute name="TreeCacheJMXName">jboss.cache:service=MyHibernateTreeCache</attribute>
</mbean>
</code>
I don't really see the point of having a treecache.xml OUTSIDE of the hibernate-service.xml descriptor. The latter is intended to define resources and dependencies. Isn't that the whole idea of the unified configuration of resources through JMX? It makes things so much more consistent and cleaner.
I can whack this up and contribute it if more people are interested.
S.