Title: 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

Reply via email to