// @Configuration(groups = "integration.ejb3", afterSuite = true) @AfterSuite(alwaysRun = true) public static void shutdownEmbeddedJboss() { System.err.println("!!! Any errors occurring after this point !!!"); System.err.println("!!! occurred during embedded server shutdown !!!"); System.err.println("!!! and is probably not a real problem. !!!"); if (deployer != null) { try { deployer.stop(); deployer.destroy(); deployer = null; } catch (Throwable t) { System.err.println("Failed to stop embedded deployer"); t.printStackTrace(System.err); } } EJB3StandaloneBootstrap.shutdown(); }