When I launch JBoss, the jboss plugin appears to wait a couple seconds, then start trying to invoke remote JMX calls on the server to get the deployment state of the server. That's cool.
But unfortunately, we have a custom JAAS module which relies on some session ejbs for accessing user objects from the database. When the jboss plugin starts pinging JMX, it triggers authentication calls to our JAAS module, which fail because the our ejbs aren't deployed yet. So basically we get a whole bunch of exceptions in the console, until the server finishes starting up.
Would anyone recommend a remedy? Is there a way to delay the plugin? Or is there a way to delay deployment of our security module until after all the ejbs are deployed? Or is it just really bad form to call ejbs from a JAAS module?