[jboss-user] [Management, JMX/JBoss] - Re: Custom service seems to be ignoring <depends> tag

toddjtidwell do-not-reply at jboss.com
Fri Oct 27 04:25:47 EDT 2006


Well, that was stupid.  Hit submit instead of preview.

Here we go again:

I've written several custom services.  However, I'd like them all to extend one base class, like so:


  | public abstract class CustomService
  | extends ServiceMBeanSupport
  | {
  |    //... Some sort of shared functionality
  | }
  | 

Then, I extend that for my actual service, like so:


  | public interface MyServiceMBean
  | extends ServiceMBean
  | {
  | 
  | }
  | 
  | public class MyService
  | extends CustomService
  | {
  | 
  | }
  | 

In my jboss-service.xml I have:


  | <mbean code="test.MyService" name="test:service=MyService">
  |     <depends>test:service=ServiceIDependOn</depends>
  | </mbean
  | 

Now, this all deploys incredibly well and functions if I deploy it while JBoss is running.  However, if I restart JBoss, MyService does *not* wait for it's dependency to deploy.  However, if I stop extending CustomService, this all works fine.

Any ideas?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981247#3981247

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981247



More information about the jboss-user mailing list