If you look on port 8082, you'll see an mbean created (in the "j2ee"
section, not the jsr-77 section) for each ejb.  Use these mbean names in
your depends/depends-list tags.

david jencks

On 2002.06.07 15:01:14 -0400 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 out
> how to get a MBean to depend on a set of Session/Entity beans
> being 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]
> <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
> <http://devcon.sprintpcs.com/adp/index.cfm>  
> > 
> > _______________________________________________ 
> > JBoss-user mailing list 
> > [EMAIL PROTECTED] 
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> <https://lists.sourceforge.net/lists/listinfo/jboss-user>  
> 
> -- 
> Greg Turner 
> 
> Tiburon Enterprise Systems 
> http://www.tiburon-e-systems.com <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
> <http://devcon.sprintpcs.com/adp/index.cfm>  
> 
> _______________________________________________ 
> JBoss-user mailing list 
> [EMAIL PROTECTED] 
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> <https://lists.sourceforge.net/lists/listinfo/jboss-user>  
> 
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
> <TITLE>RE: [JBoss-user] Startup tasks</TITLE>
> 
> <META content="MSHTML 5.00.3315.2870" name=GENERATOR></HEAD>
> <BODY>
> <DIV><FONT color=#000080 face="Comic Sans MS" size=2><SPAN 
> class=205305418-07062002><STRONG>Cool!&nbsp; I'm running JBoss 3.x, but I
> can't 
> figure out the dependency.</STRONG></SPAN></FONT></DIV>
> <DIV><FONT color=#000080 face="Comic Sans MS" size=2><SPAN 
> class=205305418-07062002><STRONG>You can make one MBean depend on
> another, but I 
> can't figure out</STRONG></SPAN></FONT></DIV>
> <DIV><FONT color=#000080 face="Comic Sans MS" size=2><SPAN 
> class=205305418-07062002><STRONG>how to get a MBean to depend on a set of
> 
> Session/Entity beans</STRONG></SPAN></FONT></DIV>
> <DIV><FONT color=#000080 face="Comic Sans MS" size=2><SPAN 
> class=205305418-07062002><STRONG>being
> deployed.</STRONG></SPAN></FONT></DIV>
> <DIV><FONT color=#000080 face="Comic Sans MS" size=2><SPAN 
> class=205305418-07062002></SPAN></FONT>&nbsp;</DIV>
> <DIV><FONT color=#000080 face="Comic Sans MS" size=2><SPAN 
> class=205305418-07062002><STRONG>JD</STRONG></SPAN></FONT></DIV>
> <DIV><FONT color=#000080 face="Comic Sans MS" size=2><SPAN 
> class=205305418-07062002></SPAN></FONT>&nbsp;</DIV>
> <DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma 
> size=2>-----Original Message-----<BR><B>From:</B> Starsinic, Frank 
> [mailto:[EMAIL PROTECTED]]<BR><B>Sent:</B> Friday, June 07, 2002
> 11:38 
> AM<BR><B>To:</B> '[EMAIL PROTECTED]'<BR><B>Subject:</B>
> RE: 
> [JBoss-user] Startup tasks<BR><BR></FONT></DIV>
> <DIV><SPAN class=404213718-07062002><FONT color=#0000ff face=Arial
> size=2>this 
> is not possible until jboss 3.0 </FONT></SPAN></DIV>
> <DIV><SPAN class=404213718-07062002><FONT color=#0000ff face=Arial 
> size=2></FONT></SPAN>&nbsp;</DIV>
> <DIV><SPAN class=404213718-07062002><FONT color=#0000ff face=Arial
> size=2>even 
> at that, i'm not sure how to set up the dependency.</FONT></SPAN></DIV>
> <DIV><SPAN class=404213718-07062002><FONT color=#0000ff face=Arial 
> size=2></FONT></SPAN>&nbsp;</DIV>
> <DIV><SPAN class=404213718-07062002><FONT color=#0000ff face=Arial 
> size=2></FONT></SPAN>&nbsp;</DIV>
> <DIV><SPAN class=404213718-07062002><FONT color=#0000ff face=Arial 
> size=2>frank</FONT></SPAN></DIV>
> <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
>   <DIV class=OutlookMessageHeader><FONT face="Times New Roman" 
>   size=2>-----Original Message-----<BR><B>From:</B> JD Brennan 
>   [mailto:[EMAIL PROTECTED]]<BR><B>Sent:</B> Friday, June 07,
> 2002 
>   11:22 AM<BR><B>To:</B> '[EMAIL PROTECTED]'<BR><B>Subject:</B>
> 
>   RE: [JBoss-user] Startup tasks<BR><BR></FONT></DIV>
>   <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.&nbsp;
> NameNotFoundException, 
>   ServerException wrapping</FONT> <BR><FONT size=2>NameNotFoundException,
> 
>   RemoteException wrapping ServerException</FONT> <BR><FONT
> size=2>wrapping 
>   NameNotFoundException.&nbsp; 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.&nbsp; 
>   Then write an MBean</FONT> <BR><FONT size=2>wrapper around your tftp
> server 
>   and deploy it.&nbsp; 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>&gt; Hello,</FONT> <BR><FONT size=2>&gt; I would like
> to 
>   execute some tasks at startup (i.e., starting a tftp</FONT> <BR><FONT 
>   size=2>&gt; server). To do so, I need a way to load classes and invoke
> methods 
>   on them</FONT> <BR><FONT size=2>&gt; as JBoss starts.</FONT> <BR><FONT 
>   size=2>&gt; Which is the better way to do that ?</FONT> <BR><FONT 
>   size=2>&gt;</FONT> <BR><FONT size=2>&gt; Thanks,</FONT> <BR><FONT 
>   size=2>&gt;</FONT> <BR><FONT size=2>&gt; --</FONT> <BR><FONT
> size=2>&gt; 
>   Ludovico Basili</FONT> <BR><FONT size=2>&gt; Software Engineer</FONT> 
>   <BR><FONT size=2>&gt; Allied Telesis K.K.</FONT> <BR><FONT size=2>&gt;
> Phone 
>   +39 02 41411245&nbsp; - FAX +39 02 41411260 - email</FONT> <BR><FONT 
>   size=2>&gt; [EMAIL PROTECTED]</FONT> <BR><FONT 
>   size=2>&gt;</FONT> <BR><FONT size=2>&gt; 
>   _______________________________________________________________</FONT> 
>   <BR><FONT size=2>&gt;</FONT> <BR><FONT size=2>&gt; Don't miss the 2002
> Sprint 
>   PCS Application Developer's Conference</FONT> <BR><FONT size=2>&gt;
> 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>&gt;</FONT> <BR><FONT size=2>&gt; 
>   _______________________________________________</FONT> <BR><FONT
> size=2>&gt; 
>   JBoss-user mailing list</FONT> <BR><FONT size=2>&gt; 
>   [EMAIL PROTECTED]</FONT> <BR><FONT size=2>&gt; <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></BLOCKQUOTE></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

Reply via email to