// JacORB-specific service configuration
configuration =
(org.jacorb.config.Configuration)((org.jacorb.orb.ORB)orb).getConfiguration();
// create the appropriate database manager object
DatabaseMgr dbMgr;
///////// Simple database implementation
dbMgr = new org.jacorb.trading.db.simple.SimpleDatabaseMgr(dbpath);
///////// ObjectStore PSE database implementation
//dbMgr = new org.jacorb.trading.db.pse.PSEDatabaseMgr(dbpath);
try {
new TradingService(dbMgr, iorfile);
orb.run();
} catch (Exception e) {
e.printStackTrace();
}
dbMgr.shutdown();
System.exit(0);
}