Hello everybody,

JBoss has now monitoring capabilities for what pertain the bean cache.
You can start the server and write very simple clients (see for example
BeanCacheMonitor*.* files in dist/bin, where source file is in included in
the jar) that give you informations about what is happening in the cache.

There are 2 ways of doing so:
1) Using JMX and a sample (poll) model (in which the client queries JBoss):
un-remark the last MBean in jboss.jcml and see BeanCacheMonitorJMX.java
inside the jar under dist/bin for an example on how to write a client.
2) Using JMS and an event model (in which JBoss post a message on a topic):
set the new parameter called BeanCacheJMSMonitoringEnabled to true in the
ContainerFactory MBean in jboss.jcml, and see BeanCacheMonitorJMS.java
inside the jar under dist/bin for an example on how to write a client.

The 2 ways are indipendent, so you can have one, the other or both enabled
at the same time.

This is of course a very first draft of monitoring capabilities, that should
have at least a nice GUI to show monitored informations, but this will come.

If you have troubles, opinions, comments, suggestions, just post a message.

Simon

Reply via email to