Making an mbean depend on a deployer only assures that the mbean starts
after the deployer, not after anything the deployer might deploy.  Depend
on the mbeans for the ejb containers. (seen in the j2ee section on port
8082)

david jencks

On 2002.06.07 15:24:50 -0400 Greg Turner wrote:
> don't focus on the beans themselves.  Focus, instead on the MBean
> deployer that deploys the jar file that contains the beans.  Try to
> figure out how to make the dependency on that specific deployer.  I'm
> not 100% sure, but I think a deployer gets instantiated for each jar
> file that needs deployment.
> 
> JD Brennan wrote:
> 
> >  Cool!  I'm running JBoss 3.x, but I can't figure out the
> > dependency.You can make one MBean depend on another, but I can't
> > figure outhow to get a MBean to depend on a set of Session/Entity
> > beansbeing deployed.JD
> > -----Original Message-----
> > From: Starsinic, Frank [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, June 07, 2002 11:38 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: RE: [JBoss-user] Startup tasks
> >
> > this is not possible until jboss 3.0 even at that, i'm not sure how to
> > set up the dependency.frank
> >
> >      -----Original Message-----
> >      From: JD Brennan [mailto:[EMAIL PROTECTED]]
> >      Sent: Friday, June 07, 2002 11:22 AM
> >      To: '[EMAIL PROTECTED]'
> >      Subject: RE: [JBoss-user] Startup tasks
> >
> >      I have written an MBean, but can't figure out how to get it
> >      to wait until all my Session and Entity Beans have been
> >      deployed before
> >      doing the startup activity.
> >
> >      Is there some depends attribute I can put in the
> >      jboss-service.xml
> >      file in my .sar?
> >
> >      I tried making JMX calls to the JBoss deployer, but it says
> >      the beans are deployed before they can be looked up by JNDI.
> >
> >      I also tried catching JNDI lookup errors, but there were too
> >
> >      many combinations.  NameNotFoundException, ServerException
> >      wrapping
> >      NameNotFoundException, RemoteException wrapping
> >      ServerException
> >      wrapping NameNotFoundException.  I abandonded this path,
> >      since
> >      it didn't seem I could ever catch all the combinations.
> >
> >      Thanks for any suggestions!
> >
> >      JD
> >
> >      -----Original Message-----
> >      From: Greg Turner [mailto:[EMAIL PROTECTED]]
> >      Sent: Friday, June 07, 2002 10:38 AM
> >      To: [EMAIL PROTECTED]
> >      Subject: Re: [JBoss-user] Startup tasks
> >
> >      Get the docs and learn to write and deploy an MBean.  Then
> >      write an MBean
> >      wrapper around your tftp server and deploy it.  Also the JMX
> >      book has an
> >      example of writing an MBean for JBoss.
> >
> >      Ludovico Basili wrote:
> >
> >      > Hello,
> >      > I would like to execute some tasks at startup (i.e.,
> >      starting a tftp
> >      > server). To do so, I need a way to load classes and invoke
> >      methods on them
> >      > as JBoss starts.
> >      > Which is the better way to do that ?
> >      >
> >      > Thanks,
> >      >
> >      > --
> >      > Ludovico Basili
> >      > Software Engineer
> >      > Allied Telesis K.K.
> >      > Phone +39 02 41411245  - FAX +39 02 41411260 - email
> >      > [EMAIL PROTECTED]
> >      >
> >      >
> >      _______________________________________________________________
> >
> >      >
> >      > Don't miss the 2002 Sprint PCS Application Developer's
> >      Conference
> >      > August 25-28 in Las Vegas --
> >      http://devcon.sprintpcs.com/adp/index.cfm
> >      >
> >      > _______________________________________________
> >      > JBoss-user mailing list
> >      > [EMAIL PROTECTED]
> >      > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> >      --
> >      Greg Turner
> >
> >      Tiburon Enterprise Systems
> >      http://www.tiburon-e-systems.com
> >      Box 1171
> >      Tiburon, CA 94920
> >      415-332-3363
> >
> >
> >      _
> >      _____________________________________________________________
> >
> >      Don't miss the 2002 Sprint PCS Application Developer's
> >      Conference
> >      August 25-28 in Las Vegas --
> >      http://devcon.sprintpcs.com/adp/index.cfm
> >
> >      _______________________________________________
> >      JBoss-user mailing list
> >      [EMAIL PROTECTED]
> >      https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> --
> Greg Turner
> 
> Tiburon Enterprise Systems
> http://www.tiburon-e-systems.com
> Box 1171
> Tiburon, CA 94920
> 415-332-3363
> 
> 
> <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
> <html>
> don't focus on the beans themselves.&nbsp; Focus, instead on the MBean
> deployer that deploys the jar file that contains the beans.&nbsp; Try to
> figure out how to make the dependency on that specific deployer.&nbsp;
> I'm not 100% sure, but I think a deployer gets instantiated for each jar
> file that needs deployment.
> <p>JD Brennan wrote:
> <blockquote TYPE=CITE>&nbsp;<span 
> class=205305418-07062002><b><font face="Comic Sans MS"><font
> color="#000080"><font size=-1>Cool!&nbsp;
> I'm running JBoss 3.x, but I can't figure out the
> dependency.</font></font></font></b></span><span 
> class=205305418-07062002><b><font face="Comic Sans MS"><font
> color="#000080"><font size=-1>You
> can make one MBean depend on another, but I can't figure
> out</font></font></font></b></span><span 
> class=205305418-07062002><b><font face="Comic Sans MS"><font
> color="#000080"><font size=-1>how
> to get a MBean to depend on a set of Session/Entity
> beans</font></font></font></b></span><span 
> class=205305418-07062002><b><font face="Comic Sans MS"><font
> color="#000080"><font size=-1>being
> deployed.</font></font></font></b></span><span 
> class=205305418-07062002></span><span 
> class=205305418-07062002><b><font face="Comic Sans MS"><font
> color="#000080"><font size=-1>JD</font></font></font></b></span><span 
> class=205305418-07062002></span>
> <div class="OutlookMessageHeader" dir="ltr"><font face="Tahoma"><font
> size=-1>-----Original
> Message-----</font></font>
> <br><font face="Tahoma"><font size=-1><b>From:</b> Starsinic, Frank [<A
> 
>HREF="mailto:[EMAIL PROTECTED]";>mailto:[EMAIL PROTECTED]</A>]</font></font>
> <br><font face="Tahoma"><font size=-1><b>Sent:</b> Friday, June 07, 2002
> 11:38 AM</font></font>
> <br><font face="Tahoma"><font size=-1><b>To:</b>
> '[EMAIL PROTECTED]'</font></font>
> <br><font face="Tahoma"><font size=-1><b>Subject:</b> RE: [JBoss-user]
> Startup tasks</font></font>
> <br>&nbsp;</div>
> <span class=404213718-07062002><font face="Arial"><font
> color="#0000FF"><font size=-1>this
> is not possible until jboss 3.0&nbsp;</font></font></font></span><span
> class=404213718-07062002></span><span class=404213718-07062002><font
> face="Arial"><font color="#0000FF"><font size=-1>even
> at that, i'm not sure how to set up the
> dependency.</font></font></font></span><span
> class=404213718-07062002></span><span
> class=404213718-07062002></span><span class=404213718-07062002><font
> face="Arial"><font color="#0000FF"><font
> size=-1>frank</font></font></font></span>
> <blockquote dir=ltr style="MARGIN-RIGHT: 0px">
> <div class=OutlookMessageHeader><font face="Times New Roman"><font
> size=-1>-----Original
> Message-----</font></font>
> <br><font face="Times New Roman"><font size=-1><b>From:</b> JD Brennan
> [<A 
>HREF="mailto:[EMAIL PROTECTED]";>mailto:[EMAIL PROTECTED]</A>]</font></font>
> <br><font face="Times New Roman"><font size=-1><b>Sent:</b> Friday, June
> 07, 2002 11:22 AM</font></font>
> <br><font face="Times New Roman"><font size=-1><b>To:</b>
> '[EMAIL PROTECTED]'</font></font>
> <br><font face="Times New Roman"><font size=-1><b>Subject:</b> RE:
> [JBoss-user]
> Startup tasks</font></font>
> <br>&nbsp;</div>
> <font size=-1>I have written an MBean, but can't figure out how to get
> it</font>
> <br><font size=-1>to wait until all my Session and Entity Beans have been
> deployed before</font>
> <br><font size=-1>doing the startup activity.</font>
> <p><font size=-1>Is there some depends attribute I can put in the
> jboss-service.xml</font>
> <br><font size=-1>file in my .sar?</font>
> <p><font size=-1>I tried making JMX calls to the JBoss deployer, but it
> says</font>
> <br><font size=-1>the beans are deployed before they can be looked up by
> JNDI.</font>
> <p><font size=-1>I also tried catching JNDI lookup errors, but there were
> too</font>
> <br><font size=-1>many combinations.&nbsp; NameNotFoundException,
> ServerException
> wrapping</font>
> <br><font size=-1>NameNotFoundException, RemoteException wrapping
> ServerException</font>
> <br><font size=-1>wrapping NameNotFoundException.&nbsp; I abandonded this
> path, since</font>
> <br><font size=-1>it didn't seem I could ever catch all the
> combinations.</font>
> <p><font size=-1>Thanks for any suggestions!</font>
> <p><font size=-1>JD</font>
> <p><font size=-1>-----Original Message-----</font>
> <br><font size=-1>From: Greg Turner [<a
> 
>href="mailto:[EMAIL PROTECTED]";>mailto:[EMAIL PROTECTED]</a>]</font>
> <br><font size=-1>Sent: Friday, June 07, 2002 10:38 AM</font>
> <br><font size=-1>To: [EMAIL PROTECTED]</font>
> <br><font size=-1>Subject: Re: [JBoss-user] Startup tasks</font>
> <p><font size=-1>Get the docs and learn to write and deploy an
> MBean.&nbsp;
> Then write an MBean</font>
> <br><font size=-1>wrapper around your tftp server and deploy it.&nbsp;
> Also the JMX book has an</font>
> <br><font size=-1>example of writing an MBean for JBoss.</font>
> <p><font size=-1>Ludovico Basili wrote:</font>
> <p><font size=-1>> Hello,</font>
> <br><font size=-1>> I would like to execute some tasks at startup (i.e.,
> starting a tftp</font>
> <br><font size=-1>> server). To do so, I need a way to load classes and
> invoke methods on them</font>
> <br><font size=-1>> as JBoss starts.</font>
> <br><font size=-1>> Which is the better way to do that ?</font>
> <br><font size=-1>></font>
> <br><font size=-1>> Thanks,</font>
> <br><font size=-1>></font>
> <br><font size=-1>> --</font>
> <br><font size=-1>> Ludovico Basili</font>
> <br><font size=-1>> Software Engineer</font>
> <br><font size=-1>> Allied Telesis K.K.</font>
> <br><font size=-1>> Phone +39 02 41411245&nbsp; - FAX +39 02 41411260 -
> email</font>
> <br><font size=-1>> [EMAIL PROTECTED]</font>
> <br><font size=-1>></font>
> <br><font size=-1>> 
>_______________________________________________________________</font>
> <br><font size=-1>></font>
> <br><font size=-1>> Don't miss the 2002 Sprint PCS Application
> Developer's
> Conference</font>
> <br><font size=-1>> August 25-28 in Las Vegas -- <a
> href="http://devcon.sprintpcs.com/adp/index.cfm";
> target="_blank">http://devcon.sprintpcs.com/adp/index.cfm</a></font>
> <br><font size=-1>></font>
> <br><font size=-1>> _______________________________________________</font>
> <br><font size=-1>> JBoss-user mailing list</font>
> <br><font size=-1>> [EMAIL PROTECTED]</font>
> <br><font size=-1>> <a href="https://lists.sourceforge.net/lists/listinfo/jboss-user";
> target="_blank">https://lists.sourceforge.net/lists/listinfo/jboss-user</a></font>
> <p><font size=-1>--</font>
> <br><font size=-1>Greg Turner</font>
> <p><font size=-1>Tiburon Enterprise Systems</font>
> <br><font size=-1><a href="http://www.tiburon-e-systems.com";
> target="_blank">http://www.tiburon-e-systems.com</a></font>
> <br><font size=-1>Box 1171</font>
> <br><font size=-1>Tiburon, CA 94920</font>
> <br><font size=-1>415-332-3363</font>
> <br>&nbsp;
> <p><font 
>size=-1>_______________________________________________________________</font>
> <p><font size=-1>Don't miss the 2002 Sprint PCS Application Developer's
> Conference</font>
> <br><font size=-1>August 25-28 in Las Vegas -- <a
> href="http://devcon.sprintpcs.com/adp/index.cfm";
> target="_blank">http://devcon.sprintpcs.com/adp/index.cfm</a></font>
> <p><font size=-1>_______________________________________________</font>
> <br><font size=-1>JBoss-user mailing list</font>
> <br><font size=-1>[EMAIL PROTECTED]</font>
> <br><font size=-1><a href="https://lists.sourceforge.net/lists/listinfo/jboss-user";
> 
>target="_blank">https://lists.sourceforge.net/lists/listinfo/jboss-user</a></font></blockquote>
> </blockquote>
> 
> <p>--
> <br>Greg Turner
> <p>Tiburon Enterprise Systems
> <br><A HREF="http://www.tiburon-e-systems.com";>http://www.tiburon-e-systems.com</A>
> <br>Box 1171
> <br>Tiburon, CA 94920
> <br>415-332-3363
> <br>&nbsp;</html>
> 

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to