log.debug( "Starting remote h2 db with port : " + port );
final String[] args = new String[] {
"-baseDir", dbPath.getAbsolutePath(),
"-tcpPort", String.valueOf(port),
"-tcpAllowOthers","" }; // need the extra empty string or a exception is thrown by H2
final Server server = Server.createTcpServer(args) ;
server.start() ;
setRemoteServer(server);
}
catch (Exception e)
{
log.error("Failed to start database", e);