Search in sources :

Example 1 with ISOServerEventListener

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);
    }
}
Also used : ISOServerEventListener(org.jpos.iso.ISOServerEventListener) Element(org.jdom2.Element) Iterator(java.util.Iterator) QFactory(org.jpos.q2.QFactory)

Aggregations

Iterator (java.util.Iterator)1 Element (org.jdom2.Element)1 ISOServerEventListener (org.jpos.iso.ISOServerEventListener)1 QFactory (org.jpos.q2.QFactory)1