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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to