package cse308.swift.server.simulation; import org.apache.log4j.Logger; import org.apache.log4j.PropertyConfigurator; import cse308.swift.server.database.SwiftTradingDBUtils; import cse308.swift.server.quotepoller.QuotePollerThread; /** * Responsible for Running the Server * Takes in the Log4j XML Configuration File * @author Raman Nanda * */ public class TradeServerSimulation { // Create Instance of Log4j Logger static Logger logger = Logger.getLogger(TradeServerSimulation.class.getName()); public static void main(String[] args) { try{ PropertyConfigurator.configure(args[0]); } catch(ArrayIndexOutOfBoundsException aioobe){ System.err.println("Application Configuration does not have Log4j Configuration!"); System.err.println("Can Not Log Data!"); } logger.info("Starting Swift Trade Server Simulation..."); SwiftTradingDBUtils dbUtils = new SwiftTradingDBUtils(); logger.info("Starting Thread..."); QuotePollerThread qpThread = new QuotePollerThread("QuotePollerThread1",dbUtils); } }