[JBossCache] - JBossCache 2.0.0 and JMX: Design ideas
by manik.surtani@jboss.com
Hi, all.
Thinking about the JMX interface to expose in JBoss Cache 2.0.0 at the moment. I'm not keen on exposing the entire cache interface as we did in the 1.x series, as I feel this is too cumbersome. What I hope to do is to expose a few classes of methods:
1) Lifecycle methods - create, start, stop, destroy
2) Configuration (read-only) getter - which retrieves a String (or formatted HTML for web based JMX consoles) representation of the configuration
3) setters for a specific subset of config elements which may be changed at runtime
4) Cache information methods (numNodes, numAttributes, lockInfo, printDetails) which print as Strings or as formatted HTML (for web based JMX consoles)
Is there an actual need for operational cache methods, like put(), get(), etc. via JMX? What about addListener()?
Just trying to understand how people use the cache with JMX at the moment.
Cheers,
Manik
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969841#3969841
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969841
19 years, 7 months
[Beginners Corner] - application classpath
by twist
I've got a huge application (10k+ classes) that uses classpath ordering to determine which version of a class gets loaded. There may be as many as four versions of a class (ranging from very generic stubs to specific application instance classes). This is auto-translated code from COBOL source and there is no hope of changing it to something a bit more oo.
Classpath ordering works fine in plain Java but for reasons I don't understand, webserver folks decided to ignore compatibility issues, avoid standardization and generally muck things up. Now I need help coming up with a workable solution, preferably one that works with multiple webservers and archive formats.
1) Is it possible to specify an application specific classpath? It looks like it might be possible with an ear but not a war and wars have to be supported. Is there something JBoss specific that would allow this?
2) How can I tell JBoss to use an application provided class loader to load the application? I could use this to specify a classpath even though the archive format doesn't provide one.
3) If possible, I'd like to start multiple instances of the application from the same archive varying only a parameter such as classpath to choose the class versions.
Thanks for any help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969838#3969838
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969838
19 years, 7 months