Does nobody know how to do this?
I really thought it was such a simple question.
The treecache xml configuration is used for JBoss MBean service deployment not just a regular JMX MBean.
In order to deploy it as a regulat MBean, you will need a wrapper to do that. I don't know the exact details under Tomcat. But I imagine it will be like obtaining the MBean server and then do a register.
Anyone knows how Tomcat works with the MBean?
I appreciate the response,
Surely this must be a big No.1 use of JBossCache?
Did you not think there would be demand for this?
If you want to contribute the wrapper code to deploy JBossCache under Tomcat as a regular MBean, you can put it in our JBossWiki site. And I will include it in our faq.