public Connection createConnection() { if (InVMConnector.failOnCreateConnection) { InVMConnector.incFailures(); log.debug("Returning null on InVMConnector for tests"); // For testing only return null; } Connection conn = internalCreateConnection(acceptor.getHandler(), new Listener(), acceptor.getExecutorFactory() .getExecutor()); acceptor.connect((String)conn.getID(), handler, this, executorFactory.getExecutor()); return conn; }
public Connection createConnection() { if (InVMConnector.failOnCreateConnection) { InVMConnector.incFailures(); HornetQServerLogger.LOGGER.debug("Returning null on InVMConnector for tests"); // For testing only return null; } Connection conn = internalCreateConnection(acceptor.getHandler(), new Listener(), acceptor.getExecutorFactory() .getExecutor()); acceptor.connect((String)conn.getID(), handler, this, executorFactory.getExecutor()); return conn; }