313314315316317318319320321322323324325326
path.mkdirs(); } catch (IOException e) { } try { DataSourceImpl dataSource = new DataSourceImpl(); dataSource.setPath(path); dataSource.setRemoveOnError(true); dataSource.init(); return dataSource; } catch (Exception e) { throw new RuntimeException(e); }
152153154155156157158159160161162163164
_messageTable = escapeName("jms_message_" + serverId); Environment.addCloseListener(this, loader); try { DataSourceImpl db = new DataSourceImpl(path); db.setRemoveOnError(true); db.init(); _db = db; Connection conn = _db.getConnection();
151152153154155156157158159160161162163
100101102103104105106107108109110111112113
try { _path.mkdirs(); } catch (IOException e) { } DataSourceImpl dataSource = new DataSourceImpl(); dataSource.setPath(_path); dataSource.setRemoveOnError(true); dataSource.init(); _dataSource = dataSource; init(); }