1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package snifos;
21
22 import org.apache.log4j.BasicConfigurator;
23 import org.apache.log4j.Level;
24 import org.apache.log4j.Logger;
25
26 import snifos.server.SnifosServer;
27
28 import java.io.FileInputStream;
29 import java.io.InputStream;
30
31
32 /***
33 * Simple runner class to start SNIFOS application server.
34 * @version $Id: Main.java,v 1.3 2004/05/08 21:55:31 mwerla Exp $
35 */
36 public class Main {
37 /***
38 * Main method which starts server.
39 * @param args Commandline parameters.
40 */
41 public static void main(String[] args) {
42 BasicConfigurator.configure();
43 Logger.getRootLogger().setLevel(Level.INFO);
44
45 try {
46 InputStream stream = new FileInputStream(args[0]);
47 new SnifosServer(stream).run();
48 } catch (Exception e) {
49 Logger.getRootLogger().error(e.getMessage(), e);
50 }
51 }
52 }