Search in sources :

Example 1 with JCoServer

use of com.sap.conn.jco.server.JCoServer in project iaf by ibissource.

the class SapListener method close.

public void close() throws ListenerException {
    try {
        log.debug(getLogPrefix() + "stop server");
        JCoServer server = JCoServerFactory.getServer(getName());
        server.stop();
        log.debug(getLogPrefix() + "unregister ServerDataProvider");
    // Delete doesn't work after stopping the server, when calling
    // delete first the stop method will fail.
    // serverDataEventListener.deleted(getName());
    } catch (Exception e) {
        throw new ListenerException(getLogPrefix() + "could not stop", e);
    } finally {
        try {
            Environment.unregisterServerDataProvider(this);
        } catch (Exception e) {
            throw new ListenerException(getLogPrefix() + "could not unregister", e);
        } finally {
            closeFacade();
        }
    }
}
Also used : ListenerException(nl.nn.adapterframework.core.ListenerException) JCoServer(com.sap.conn.jco.server.JCoServer) JCoRuntimeException(com.sap.conn.jco.JCoRuntimeException) ListenerException(nl.nn.adapterframework.core.ListenerException) JCoException(com.sap.conn.jco.JCoException) AbapClassException(com.sap.conn.jco.AbapClassException) ConfigurationException(nl.nn.adapterframework.configuration.ConfigurationException) AbapException(com.sap.conn.jco.AbapException)

Aggregations

AbapClassException (com.sap.conn.jco.AbapClassException)1 AbapException (com.sap.conn.jco.AbapException)1 JCoException (com.sap.conn.jco.JCoException)1 JCoRuntimeException (com.sap.conn.jco.JCoRuntimeException)1 JCoServer (com.sap.conn.jco.server.JCoServer)1 ConfigurationException (nl.nn.adapterframework.configuration.ConfigurationException)1 ListenerException (nl.nn.adapterframework.core.ListenerException)1