Project

General

Profile

« Previous | Next » 

Revision 100

fixing transform bugs

View differences:

MetaCatServlet.java
110 110
        dbt = new DBTransform(conn);
111 111

  
112 112
      } catch (Exception e) {
113
        System.err.println("Error opening database connection");
113 114
      }
114 115
    } catch ( ServletException ex ) {
115 116
      throw ex;
......
139 140
    HttpServletResponse response) 
140 141
    throws ServletException, IOException {
141 142

  
143
    if (conn == null) {
144
      System.err.println("Connection to database lost.  Reopening...");
145
      try {
146
        // Open a connection to the database
147
        conn = MetaCatUtil.openDBConnection(
148
                "oracle.jdbc.driver.OracleDriver",
149
                defaultDB, user, password);
150
  
151
        queryobj = new DBSimpleQuery(conn);
152
        docreader = new DBReader(conn);
153
        dbt = new DBTransform(conn);
154
  
155
      } catch (Exception e) {
156
        System.err.println("Error opening database connection");
157
      }
158
    }
159

  
142 160
    // Get a handle to the output stream back to the client
143 161
    PrintWriter out = response.getWriter();
144 162
  

Also available in: Unified diff