Please see if I explained this well enough in the quickstart guide and provide suggestions for improvement.
thanks david jencks On 2002.06.07 14:21:56 -0400 JD Brennan wrote: > 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 > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> > <HTML> > <HEAD> > <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> > <META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12"> > <TITLE>RE: [JBoss-user] Startup tasks</TITLE> > </HEAD> > <BODY> > > <P><FONT SIZE=2>I have written an MBean, but can't figure out how to get > it</FONT> > <BR><FONT SIZE=2>to wait until all my Session and Entity Beans have been > deployed before</FONT> > <BR><FONT SIZE=2>doing the startup activity.</FONT> > </P> > > <P><FONT SIZE=2>Is there some depends attribute I can put in the > jboss-service.xml</FONT> > <BR><FONT SIZE=2>file in my .sar?</FONT> > </P> > > <P><FONT SIZE=2>I tried making JMX calls to the JBoss deployer, but it > says</FONT> > <BR><FONT SIZE=2>the beans are deployed before they can be looked up by > JNDI.</FONT> > </P> > > <P><FONT SIZE=2>I also tried catching JNDI lookup errors, but there were > too</FONT> > <BR><FONT SIZE=2>many combinations. NameNotFoundException, > ServerException wrapping</FONT> > <BR><FONT SIZE=2>NameNotFoundException, RemoteException wrapping > ServerException</FONT> > <BR><FONT SIZE=2>wrapping NameNotFoundException. I abandonded this > path, since</FONT> > <BR><FONT SIZE=2>it didn't seem I could ever catch all the > combinations.</FONT> > </P> > > <P><FONT SIZE=2>Thanks for any suggestions!</FONT> > </P> > > <P><FONT SIZE=2>JD</FONT> > </P> > > <P><FONT SIZE=2>-----Original Message-----</FONT> > <BR><FONT SIZE=2>From: Greg Turner [<A > >HREF="mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]</A>]</FONT> > <BR><FONT SIZE=2>Sent: Friday, June 07, 2002 10:38 AM</FONT> > <BR><FONT SIZE=2>To: [EMAIL PROTECTED]</FONT> > <BR><FONT SIZE=2>Subject: Re: [JBoss-user] Startup tasks</FONT> > </P> > <BR> > > <P><FONT SIZE=2>Get the docs and learn to write and deploy an > MBean. Then write an MBean</FONT> > <BR><FONT SIZE=2>wrapper around your tftp server and deploy it. > Also the JMX book has an</FONT> > <BR><FONT SIZE=2>example of writing an MBean for JBoss.</FONT> > </P> > > <P><FONT SIZE=2>Ludovico Basili wrote:</FONT> > </P> > > <P><FONT SIZE=2>> Hello,</FONT> > <BR><FONT SIZE=2>> I would like to execute some tasks at startup > (i.e., starting a tftp</FONT> > <BR><FONT SIZE=2>> server). To do so, I need a way to load classes and > invoke methods on them</FONT> > <BR><FONT SIZE=2>> as JBoss starts.</FONT> > <BR><FONT SIZE=2>> Which is the better way to do that ?</FONT> > <BR><FONT SIZE=2>></FONT> > <BR><FONT SIZE=2>> Thanks,</FONT> > <BR><FONT SIZE=2>></FONT> > <BR><FONT SIZE=2>> --</FONT> > <BR><FONT SIZE=2>> Ludovico Basili</FONT> > <BR><FONT SIZE=2>> Software Engineer</FONT> > <BR><FONT SIZE=2>> Allied Telesis K.K.</FONT> > <BR><FONT SIZE=2>> Phone +39 02 41411245 - FAX +39 02 41411260 - > email</FONT> > <BR><FONT SIZE=2>> [EMAIL PROTECTED]</FONT> > <BR><FONT SIZE=2>></FONT> > <BR><FONT SIZE=2>> >_______________________________________________________________</FONT> > <BR><FONT SIZE=2>></FONT> > <BR><FONT SIZE=2>> Don't miss the 2002 Sprint PCS Application > Developer's Conference</FONT> > <BR><FONT SIZE=2>> 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=2>></FONT> > <BR><FONT SIZE=2>> _______________________________________________</FONT> > <BR><FONT SIZE=2>> JBoss-user mailing list</FONT> > <BR><FONT SIZE=2>> [EMAIL PROTECTED]</FONT> > <BR><FONT SIZE=2>> <A >HREF="https://lists.sourceforge.net/lists/listinfo/jboss-user" > TARGET="_blank">https://lists.sourceforge.net/lists/listinfo/jboss-user</A></FONT> > </P> > > <P><FONT SIZE=2>--</FONT> > <BR><FONT SIZE=2>Greg Turner</FONT> > </P> > > <P><FONT SIZE=2>Tiburon Enterprise Systems</FONT> > <BR><FONT SIZE=2><A HREF="http://www.tiburon-e-systems.com" > TARGET="_blank">http://www.tiburon-e-systems.com</A></FONT> > <BR><FONT SIZE=2>Box 1171</FONT> > <BR><FONT SIZE=2>Tiburon, CA 94920</FONT> > <BR><FONT SIZE=2>415-332-3363</FONT> > </P> > <BR> > <BR> > > <P><FONT >SIZE=2>_______________________________________________________________</FONT> > </P> > > <P><FONT SIZE=2>Don't miss the 2002 Sprint PCS Application Developer's > Conference</FONT> > <BR><FONT SIZE=2>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> > > <P><FONT SIZE=2>_______________________________________________</FONT> > <BR><FONT SIZE=2>JBoss-user mailing list</FONT> > <BR><FONT SIZE=2>[EMAIL PROTECTED]</FONT> > <BR><FONT SIZE=2><A HREF="https://lists.sourceforge.net/lists/listinfo/jboss-user" > TARGET="_blank">https://lists.sourceforge.net/lists/listinfo/jboss-user</A></FONT> > </P> > > </BODY> > </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
