This content has been marked as final.
Show 3 replies
-
1. Re: Shutdown JBoss gracefully when it fails to deploy a crit
tmuldoon Jun 10, 2006 10:19 AM (in response to poorabshah)Unfortunately, I have the very same question. If only someone had replied ...
-
2. Re: Shutdown JBoss gracefully when it fails to deploy a crit
dimitris Jun 10, 2006 5:24 PM (in response to poorabshah)Maybe catch the exception yourself in the start() method of your service and call exit with an error code on the jboss.system:type=Server mbean.
-
3. Re: Shutdown JBoss gracefully when it fails to deploy a crit
tmuldoon Jun 11, 2006 2:50 PM (in response to poorabshah)Dmitris, thanks for your reply. It's appreciated. That said, I tried the following within my MBean's startService method to no avail (the server did not abort the startup as hoped) ...
try
{
.
.
.
}
catch (MyException e)
{
MBeanServer server = MBeanServerLocator.locateJBoss();
ObjectName target = new ObjectName("jboss.system:type=Server");
server.invoke(target, "shutdown", new Object[0], new String[0]);
}