| 27 | static Logger logger = Logger.getLogger(MySQLHelper.class); |
| 28 | |
| 29 | private void initCfg() throws Exception { |
| 30 | ResourceBundle bundle=null; |
| 31 | try { |
| 32 | bundle = ResourceBundle.getBundle(configFilename); |
| 33 | url=bundle.getString("mysqlurl"); |
| 34 | user=bundle.getString("mysqluser"); |
| 35 | password=bundle.getString("mysqlpassword"); |
| 36 | maxpackage=Integer.parseInt(bundle.getString("max_allowed_packet")); |
| 37 | } catch (Exception var6) { |
| 38 | var6.printStackTrace(System.out); |
| 39 | logger.error("Can not Found Config File dbconfig.properties"); |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | public boolean init() |
| 44 | { |