This content has been marked as final.
Show 2 replies
-
1. Re: detecting jboss startup
meatus Nov 15, 2004 12:47 PM (in response to mgmurray)Ant can do it with the "waitfor" task. Probably something like:
<waitfor> <http url="http://localhost:8080/jmx-console"/> </waitfor>
Good luck,
Brett -
2. Re: detecting jboss startup
dimitris Nov 15, 2004 12:56 PM (in response to mgmurray)1st method:
Write an MBean (extend org.jboss.system.ServiceMBeanSupport) and inside the startService() method make the call to your EJB - make a ./deploy/deploy.last folder and deploy your MBean in there.
2nd method:
Write an MBean (extend org.jboss.system.ListenerServiceMBeanSupport) and inside the handleNotification2() method make the call to your EJB. During serviceStart() call subscribe(true). Configure the subscription-list attribute to listen for the server started notification, as follows:.. <attribute name="SubscriptionList"> <subscription-list> <mbean name="jboss.system:type=Server"> <notification type="org.jboss.system.server.started"/> </mbean> </subscription-list> </attribute
See also:
http://www.jboss.org/wiki/Wiki.jsp?page=FAQJBossJMX
http://www.jboss.org/wiki/Wiki.jsp?page=ExampleMinimalNotificationListener