|-----Original Message-----
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED]]On Behalf Of Scott M Stark
|Sent: Sunday, December 03, 2000 10:29 PM
|To: jBoss; [EMAIL PROTECTED]
|Subject: [jBoss-Dev] Re: [jBoss-User] Does the
|jboss.dependenciesmechanism work?
|
|
|Ok, so I looked through the code to see what was going on and I
|found that the
|jboss.dependencies file is only controlling the startup of MBeans
|that register
|with an object name of ":service=XXX", which is the pattern used by the
|jboss ServiceMBeanSupport subclasses.
|
|The DependencyManager does not run until after all MBeans have
|been loaded by
|the JMX MLet service. Delaying the start of the jboss services to
|after the loading
|of the MBeans seems inconsistent with the prescribed mechanism of an MBean
|implementing the MBeanRegistration so that the bean can implement
|preRegister to:
|
|Page 117 of the JMX spec:
|"Get information about the environment, for instance, check on the
|existence of
|services the MBean depends upon. When such required services are not
|available, the MBean might either try to instantiate them, or raise a
|ServiceNotFoundException exception."
|
|I would suggest that the jboss main use two mlet files to allow
|for non-jboss MBeans
|to assert dependecies on jboss services at a point at which the
|jboss services are
|started. So, org.jboss.Main would:
|
|1. Load jboss services from jboss.conf using the MLet service
|2. Run the DependencyManager to start the services in the correct order
|3. Load user services from a jboss-user.conf file using the MLet service.
|
|Any objections to making this change?

ok the MLET stuff is very bare as I pointed out before.  It is my belief
that even though it is exposed in the MBeanServer
1- it is intended for tools
2- if it is intended for humans then it is poorly designed (as are other
things in JMX dum-dada)

bottom line is we should wrap the configuration service in an XML file, we
could specify the dependencies (even at the app layer) in a simple xml file
so that events are propagated up the tree bla bla bla, copy what inprise had
done for corba and we got ourselves something that is killer.

This and the clustering are the REAL enablers.

Then my mission will be complete and I get to go back home... can't wait


__________________
"Fuck this planet"
-- Red Planet --
__________________
|
|----- Original Message -----
|From: "Scott M Stark" <[EMAIL PROTECTED]>
|To: "jBoss" <[EMAIL PROTECTED]>
|Sent: Sunday, December 03, 2000 8:20 PM
|Subject: [jBoss-User] Does the jboss.dependencies mechanism work?
|
|
|
|
|


Reply via email to