title: Java DB (aka Derby) doesn't restore database from a backup
body: <p>As I've read from the <a href="http://db.apache.org/derby/docs/10.0/manuals/admin/hubprnt44.html" rel="nofollow">apache manuals</a>, I tried to restore my embedded Java DB (AKA Derby) Database using this code:</p>
  
  <pre><code>private void restoreBackup() {
      FileDialog fileDialog = new FileDialog(new Frame(), "Choose A Backup Folder)", FileDialog.LOAD);
      //fileDialog.setDirectory("::myVolume:");
      fileDialog.setVisible(true);
      String fileName = fileDialog.getDirectory();
  
      if (fileDialog.getDirectory() != null) {
          fileName = fileName.substring(0, fileName.lastIndexOf(System.getProperty("file.separator")));
          try {
              Class.forName("org.apache.derby.jdbc.EmbeddedDriver").newInstance();
              Properties connectionProps = new Properties();
              connectionProps.put("restoreFrom", fileName);
              connectionProps.put("user", "pass");
              connectionProps.put("password", "databaseName");
              conn = DriverManager.getConnection(dbURL, connectionProps);
              conn.commit();
              System.out.println("Database Restored");
          } catch (InstantiationException ex) {
              Logger.getLogger(ReseachAssistantUI.class.getName()).log(Level.SEVERE, null, ex);
          } catch (IllegalAccessException ex) {
              Logger.getLogger(ReseachAssistantUI.class.getName()).log(Level.SEVERE, null, ex);
          } catch (ClassNotFoundException ex) {
              Logger.getLogger(ReseachAssistantUI.class.getName()).log(Level.SEVERE, null, ex);
          } catch (SQLException ex) {
              Logger.getLogger(ReseachAssistantUI.class.getName()).log(Level.SEVERE, null, ex);
          }
      }
  }
  </code></pre>
  
  <p>But, nothing happens, even though no exceptions are thrown. Am I doing something wrong here?</p>