Hi Olivier,
I am using restlet 2.0-SNAPSHOT (JSE). And, I am using Spring, Jetty, Json
2.0-SNAPSHOT extensions with that.
This is how my class looks
public class MyResource extends ServerResource{
public void doInit() throws ResourceException{
try{
//BLOCK A
}catch{
// log exception
}
}
@Get
public Representation getMyResponse(){
try{
//BLOCK B
}catch{
// log exception
throw new ResourceException(Status.SEVER_ERROR_INTERNAL, "error
description"); // works till here
}
}
}
It works good, if an exception is thrown in BLOCK A. If an exception is
thrown in BLOCK B, it works till I throw ResourceException in catch block.
But, after that it stops responding for a while under load.
let me know if you need more information.
Thanks
Rohit
--
View this message in context:
http://restlet-discuss.1400322.n2.nabble.com/restlet-stops-responding-for-a-while-when-exception-is-thrown-under-load-tp5412698p5442712.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2648981