@GET
	@Produces(MediaType.LIBROS_API_RESENA_COLLECTION)
	public ResenaCollection getResenas(@PathParam("idlibro") String idlibro) {
		ResenaCollection resenas = new ResenaCollection();
		Connection conn = null;
		Statement stmt = null;
		String sql;
		try {
			conn = ds.getConnection();
		} catch (SQLException e) {
			throw new ServiceUnavailableException(e.getMessage());
		}
		try {
			stmt = conn.createStatement();
			sql = "SELECT resenas.*, users.name FROM users INNER JOIN resenas ON(idlibro= '"
					+ idlibro + "' and users.username=resenas.username) ";
			ResultSet rs = stmt.executeQuery(sql);
			if (!rs.next()) {
				throw new ResenaNotFoundException();
			}
			//rs.previous();
			while (rs.next()) {
				Resena resena = new Resena();
				resena.setUsername(rs.getString("username"));
				resena.setName(rs.getString("name"));
				resena.setFecha(rs.getDate("fecha"));
				resena.setTexto(rs.getString("texto"));
				resena.setIdlibro(rs.getInt("idlibro"));
				resena.setIdres(rs.getInt("idres"));
				resena.add(LibrosAPILinkBuilder.buildURIResenaId(uriInfo, "self",rs.getInt("idres"),idlibro));	
				resenas.add(resena);
			}
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} finally {
			try {
				stmt.close();
				conn.close();
			} catch (SQLException e) {
				e.printStackTrace();
			}
		}
		return resenas;
	}