private Object loadFromDatabase(Object ob) {
    Object obj = null;
    try {
      Context ctx = CacheFactory.getAnyInstance().getJNDIContext();
      DataSource ds = (DataSource) ctx.lookup("java:/XAPooledDataSource");
      Connection conn = ds.getConnection();
      Statement stm = conn.createStatement();
      ResultSet rs = stm.executeQuery("select name from " + tableName + " where id = ("
          + new Integer(ob.toString()) + ")");
      rs.next();
      obj = rs.getString(1);
      stm.close();
      conn.close();
      return obj;
    } catch (Exception e) {
      e.printStackTrace();
    }
    // conn.close();
    return obj;
  }
A <code>CacheLoader</code> used in testing. Users should override the "2" method.


@since GemFire 3.0
geode-core/src/test/java/org/apache/geode/internal/jta/functional/TestXACacheLoader.java