This content has been marked as final.
Show 1 reply
-
1. Re: Can Only Hot deploy <depends> problem.
andrewboyd Dec 12, 2003 8:58 AM (in response to andrewboyd)Poking around the source code can help sometimes :-)
It took me a while after reading this javaDoc from the
ServiceControler for the meaning to sink in:/** * Deploy the beans * * Deploy means "instantiate and configure" so the MBean is created in the MBeanServer * You must call "create" and "start" separately on the MBean to affect the service lifecycle * deploy doesn't bother with service lifecycle only MBean instanciation/registration/configuration */ public synchronized List install(Element config, ObjectName loaderName)
Your Service/MBean will instantiated before any of the ServiceMBean lifecycle methods are called. So if you depend on another MBean
you better not dependon that MBean in your constructor because
it will be called before any atempt at satisifying your depends tag.
Hope this helps someone in the future,
Andrew