BrokerPool.stopAll();
BrokerPool.stopAll(true);
	public static void main(String[] args) {		if (args.length == 0) {			System.out.println("No configuration file specified!");			return;		}				// configure database		String home = System.getProperty("exist.home");		if (home == null)			home = System.getProperty("user.dir");		System.out.println("Configuring eXist from " + home + File.separatorChar + "conf.xml");		try {			Configuration config = new Configuration("conf.xml", home);			BrokerPool.configure(1, 5, config);		} catch (Exception e) {			System.err.println("configuration error: " + e.getMessage());			e.printStackTrace();			return;		}		// start Jetty		final Server server;		try {			server = new Server(args[0]);			BrokerPool.getInstance().registerShutdownListener(new ShutdownListenerImpl(server));			server.start();			// register a shutdown hook for the server			Thread hook = new Thread() {				public void run() {					setName("Shutdown");					BrokerPool.stopAll();					try {						server.stop();					} catch (InterruptedException e) {					}					try {						Thread.sleep(1000);					} catch (Exception e) {						e.printStackTrace();					}				}			};			Runtime.getRuntime().addShutdownHook(hook);		} catch (Exception e) {			e.printStackTrace();		}	}