// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
package akkademo2.jdbc.threadpool;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

import akkademo2.jdbc.Setup;

public class Test {
	public static void main(String[] args) throws Exception {
		Setup.startPool();
		Setup.initDB();
		ExecutorService es = Executors.newFixedThreadPool(64);
		Controller ctl = new Controller(es);
		ctl.start();
		System.in.read();
		es.shutdown();
		Setup.checkDB();
		Setup.stopPool();
	}
}
