Hi!
Rickard �berg wrote:
> There is a new configuration service in jBoss. It is located in
> org/jboss/configuration, and is to be used to configure JMX MBeans. It
> is itself an MBean, and has two methods: "load(String)" and "String
> save()", where String is an XML-structure containing the settings. By
> using a string to communicate the settings it will be substantially
> easier to do remote updates of server configuration.
<snip>
I forgot to mention that having this kind of configuration service makes
it easier to do MBeans. Instead of making super-constructors that take
all the parameters you can provide settings by using this configuration
service. This lets you set as many or as few things as you like. The
constructors should only be used to take arguments that are absolutely
required for proper functioning. All other types of settings should be
done through get/set methods in the MBean to allow configuration through
configuration services such as this.
Whether the settings apply right away, or when the service is
"start()"-ed, is up to the MBean implementor. I would suggest that
settings are applied on start() though to allow for maximum consistency.
regards,
Rickard
--
Rickard �berg
@home: +46 13 177937
Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com