Hi, I'm not sure if this is right place for this question, but since I'm fairly new to JBoss I suppose it's the most appropriate.
Does anyone know if it's possible to call something in your java code that will effectively shutdown the JBoss server? I'm working on project and the client has requested a feature such that if something serious goes wrong; rather than writing huge logs indefinitely, it will shut itself down.
You could use the MBean interface, jboss.system:type=Server and invoke the shutdown() operation.
I've been looking at the EJB3 server, and there's a very easy way to access MBeans and invoke them.