Commit ba4313b3 authored by kpandey's avatar kpandey

Make a change in getCacheName method

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@176484 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 59033b80
...@@ -62,10 +62,10 @@ public class SystemService ...@@ -62,10 +62,10 @@ public class SystemService
} }
@POST @GET
@Path("/site/{siteCode}") @Path("/site/{siteCode}")
@Produces({ "application/xml", "application/json" }) @Produces({ "application/xml", "application/json" })
public void getSite(@PathParam("siteCode") String siteCode) public Response getSite(@PathParam("siteCode") String siteCode)
{ {
System.out.println("\n getCachedSite"); System.out.println("\n getCachedSite");
...@@ -80,7 +80,8 @@ public class SystemService ...@@ -80,7 +80,8 @@ public class SystemService
masterDAO.fetchAllSites(CacheManager.SYSTEM_CACHE_NAME); masterDAO.fetchAllSites(CacheManager.SYSTEM_CACHE_NAME);
site = systemCache.getCachedSite(siteCode, CacheManager.SYSTEM_CACHE_NAME); site = systemCache.getCachedSite(siteCode, CacheManager.SYSTEM_CACHE_NAME);
} }
setSiteInfo(siteCode); // setSiteInfo(siteCode);
return Response.status(200).entity( new JSONObject(site).toString() ).build();
} }
@GET @GET
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment