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
 

Reply via email to