Hi!
"Schaefer, Andreas" wrote:
> IMO the MBean should not rely on the load order but try to wait till
> the necessary MBean(s) are loaded to connect to them (I think the
> MBeanServer sends a Notification Event when a MBean is loaded).
> Now register your MBean as a Notification Listener (you can use
> NotificationFilter to reduce the number of events received) and then
> wait till its registered (OK, Ok, of course only when the MBean(s) is
> not already loaded).
>
> You can make it even more advanced when you also listen to unregister
> events of the MBean(s) you depend on to disconnect your MBean from the
> other. Therefore a dynamic reload could be implemented and jBoss becomes
> a real pluggable EJB Server.
You are absolutely correct, with the additional requirement that it is
not registration that is really important, but that the MBean has been
started (i.e. init+start).
Also, this should not be handled by the service itself, but by some
third party "relationship handler". This makes the MBeans themselves
much simpler and less reliant on each other I think.
/Rickard
--
Rickard �berg
Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com