Search in sources :

Example 1 with LoggingPrintWriter

use of org.apache.openejb.util.LoggingPrintWriter in project tomee by apache.

the class DerbyNetworkService method start.

@Override
public void start() throws ServiceException {
    if (this.disabled) {
        return;
    }
    try {
        this.serverControl = new NetworkServerControl(host, port);
        this.serverControl.start(new LoggingPrintWriter("Derby"));
        if (verbose) {
            LOGGER.info("Starting openejb-derbynet with derby " + serverControl.getRuntimeInfo() + " " + serverControl.getSysinfo());
        }
    } catch (Exception e) {
        throw new ServiceException(e);
    }
}
Also used : ServiceException(org.apache.openejb.server.ServiceException) NetworkServerControl(org.apache.derby.drda.NetworkServerControl) LoggingPrintWriter(org.apache.openejb.util.LoggingPrintWriter) IOException(java.io.IOException) ServiceException(org.apache.openejb.server.ServiceException)

Aggregations

IOException (java.io.IOException)1 NetworkServerControl (org.apache.derby.drda.NetworkServerControl)1 ServiceException (org.apache.openejb.server.ServiceException)1 LoggingPrintWriter (org.apache.openejb.util.LoggingPrintWriter)1