Compiler.load(new StringReader(nadef));
String configfile = sconf.getIepParameter("riemann", "config");
if(configfile == null) configfile = "riemann.config";
riemann.bin.main(new String[] { configfile });
IMQMQ[] mqs = MQFactory.getMQs(sconf);
IMQBroker broker = BrokerFactory.getBroker(sconf);
EventHandler eh = new EventHandler(mqs, broker);
mql = new MQListener[mqs.length];
for(int i=0; i<mqs.length; i++)
mql[i] = new MQListener(eh, mqs[i]);
}