@GET @Path("/getLastUpdate") @Produces({"text/html"}) public Response getLatestUpdate(@QueryParam("key") String param1) { String LastUpdate = ""; try { LastUpdate = (String) MyBatis.SessionFactory.Get( "com.dal.ClientMonitorMapper.getLatestRunTime", "lastupdated"); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } return Response.status(200).entity(LastUpdate).build(); }