Are you talking about a new service that replaces org.jboss.util.ServiceControl or 
a new service? The ServiceControl MBean that manages service lifecyle also
manages service dependencies and the invocation of init() and start() are distinct
phases. When start is called on a service you know that every service has 
received an init() and every service you depend on has received a start().

----- Original Message ----- 
From: "Stacy Curl" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "'Julian Gosnell'" 
<[EMAIL PROTECTED]>
Sent: Tuesday, April 10, 2001 2:09 PM
Subject: RE: [JBoss-dev] Custom startup solved !? was: Nested JMX Service Groups...??!


> I think that the JBoss inspired life-cycle is too restrictive, I'd
> like to be able to define life-cycle schemas in the XMLet resource
> file, or in another XML file. An XMLet version might look something
> like:
> 
> <xmlets>
>   <xmlet code="com.sun.jdmk.comm.HtmlAdaptorServer"
>          archive="jmxtools.jar"
>          name="DefaultDomain:name=HtmlAdaptorServer">
>     <meta-data>
>       <life-cycle>
>         <start>
>           <method name="init"/>
>           <method name="start"/>
>         </start>
>         <stop>
>           <method name="stop"/>
>           <method name="destroy"/>
>         </stop>
>         <ping>
>           <method name="ping">
>             <input>
>               <!-- timeout -->
>               <param class="long">500</param>
>             </input>
>             <desired-output>
>               <param class="boolean">true</param>
>             </desired-output>
>           </method>
>         </ping>
>       </life-cycle>
>     </meta-data>
>     <arg type="int" value="8082"/>
>   </xmlet>
> </xmlets>
> 



_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to