-
1. Re: How to use JMX (design wise)
d-ploy Nov 12, 2002 6:54 PM (in response to tonykl)Hi,
regarding the amazon example:
You probably wouldn't register an MBean for every book because there are just too many. JMX is not so much about managing data (that's what databases are for), it is about managing applications.
So a very coarse grained approach would be to have just one MBean for the whole shop. You would probably have start and stop methods to "open" and "close" your shop and you could monitor the well-being of the whole shop.
Or you could have an MBean for every (software-)component, e.g. one for the database, one for the app-server etc. In this case you could monitor the DB separately from your app-server.
The most fine-grained approach that I would find reasonable in certain situations, would be to create an MBean for every session/connection of an application. If you have only a few connections which last for a long time you may want to manage things like buffersize or just to shutdown a specific connection. (But I probably would not advise this for the amazon-example).
Regards,
d-ploy -
2. Re: How to use JMX (design wise)
d-ploy Nov 12, 2002 7:15 PM (in response to tonykl)Hi,
regarding the amazon example:
You probably wouldn't register an MBean for every book because there are just too many. JMX is not so much about managing data (that's what databases are for), it is about managing applications.
So a very coarse grained approach would be to have just one MBean for the whole shop. You would probably have start and stop methods to "open" and "close" your shop and you could monitor the well-being of the whole shop.
Or you could have an MBean for every (software-)component, e.g. one for the database, one for the app-server etc. In this case you could monitor the DB separately from your app-server.
The most fine-grained approach that I would find reasonable in certain situations, would be to create an MBean for every session/connection of an application. If you have only a few connections which last for a long time you may want to manage things like buffersize or just to shutdown a specific connection. (But I probably would not advise this for the amazon-example).
Regards,
d-ploy