use of org.jpos.iso.ISOServerEventListener in project jPOS by jpos.
the class QServer method addISOServerConnectionListeners.
private void addISOServerConnectionListeners() throws ConfigurationException {
QFactory factory = getFactory();
Iterator iter = getPersist().getChildren("connection-listener").iterator();
while (iter.hasNext()) {
Element l = (Element) iter.next();
ISOServerEventListener listener = (ISOServerEventListener) factory.newInstance(l.getAttributeValue("class"));
factory.setLogger(listener, l);
factory.setConfiguration(listener, l);
server.addServerEventListener(listener);
}
}
Aggregations