// public class InitAction { // private static Connection conn; // // // // Logger log = Logger.getLogger("InitAction"); static Logger logger = Logger.getLogger ( InitAction.class.getName () ) ; private Log log = LogFactory.getLog(InitAction.class); // // log.trace("browse start"); // private static Connection getConnection() { // // try { // // PropertyConfigurator.configure(args[0]); // InputStream is =InitAction.class.getResourceAsStream( // "/oracle.properties"); // Properties properties = new Properties(); // properties.load(is); // // PropertyConfigurator.configure(properties); // // } catch (IOException ex) { // ex.printStackTrace(); // } catch (ProxoolException e) { // // TODO Auto-generated catch block // e.printStackTrace(); // } // // try { // conn = DriverManager.getConnection("proxool.oracle"); // } catch (Exception ex) { // ex.printStackTrace(); // // log.error("数据库连接异常:"+ex.toString()); // } // if (conn == null) { // // log.error("连接无效..."); // } // return conn; // }