I am using restlet gwt module to make requests to a jersey server code. I 
dumped out system along the way to check for delays along each stage. 
Apparently, it is taking more than 2 secs for the request to show up on the 
server side after the client call. I tried both gwt and json style requests 
with no difference in performance.

client side:
                ClientResource clientResource = new 
ClientResource("rest/page?pageId="+pageId);
                clientResource.setOnResponse(new Uniform() {
                        public void handle(Request request, Response response) {
                                try {
                                        
System.out.println("WebpageEditorPresenter.loadpage on sucess: page=" + pageId 
+ " " + System.currentTimeMillis());
                                        String jsonString = 
response.getEntity().getText();
                                        // process for json object values
                                } catch (IOException e) {
                                        e.printStackTrace();
                                }
                        }
                });
                clientResource.get(MediaType.APPLICATION_JSON);

server side:
        @GET
        @Produces("application/json")
        public String read(@Context HttpServletRequest req){
                System.out.println("PageResource.read start: 
"+System.currentTimeMillis());
                // return json result
        }

There is no serialization to do in this case, where did all the time go?

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2931263

Reply via email to