package org.openslx.dnbd3.status; import java.io.IOException; import java.util.Arrays; public class App { public static void main( String[] args ) throws IOException { if ( args.length < 1 ) { System.err.println( "Missing arguments\nUsage: tool ... " ); System.exit( 1 ); } int port = Integer.parseInt( args[0] ); String[] servers = Arrays.copyOfRange( args, 1, args.length ); System.setProperty( "com.example.jndi.dns.timeout.initial", "400" ); System.setProperty( "com.example.jndi.dns.timeout.retries", "2" ); WebServer ws = new WebServer( port, servers ); ws.run(); } }