This content has been marked as final. Show 3 replies
There is an elegant solution for this in 4.0.2
"How can I delay the starting of my MBean until after the Tomcat connectors are active?"
I have added a dependency but it does not affect the startup ordering? e.g.
That is because that MBean is not a service, NOTE: there is no service=, but more generally it is not created through an MBean deployment or via the service controller.
In this case, it is an MBean that provides the JSR77 facade over the real service.
You should look for the real mbean service that it represents, in the example above since it is a war deployment it will be in jboss.web.deployment.
So - based on that - shouldn't the following work?
It's definitely got "service=". But I have not had luck getting it working.
This is nice, but for those of us who can't upgrade JBoss willy-nilly (for instance, if getting software approved for use on a particular client site is an involved process), is there another way? We are using 4.0.1 and I would like a more elegant solution than renaming my .sar to start with a Z :)
That should be jboss.web:service=WebServer