public static void runProducerConsumerTest(String uri, int commitEvery)
throws IOException, URISyntaxException, NoSuchAlgorithmException, KeyManagementException
{
ConnectionFactory cfconnp = new ConnectionFactory();
cfconnp.setUri(uri);
Connection connp = cfconnp.newConnection();
ProducerMain p = new ProducerMain(connp, 2000, 10000, false, commitEvery, true);
new Thread(p).start();
ConnectionFactory cfconnc = new ConnectionFactory();
cfconnc.setUri(uri);
Connection connc = cfconnc.newConnection();