RE: Restlet have messages.properties like Spring ?

2010-08-21 Thread webpost
good guideline. Thank you, Thierry Boileau -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2649387

RE: restlet stops responding for a while when exception is thrown under load

2010-08-21 Thread Olivier Monaco
I can't reproduce your issue. I'm using 2.0 RC4 with Jetty. Here is my resource : public class MyRes extends ServerResource { @Get public String retrieve() { try { throw new Error(); // return Salut; } catch (Error e) {

Simplest way to return an error message?

2010-08-21 Thread Avi Flax
Hi all, I'm finally writing some code after way too long of a hiatus, and I'm of course getting hung up on some simple things. With 2.0, what's the simplest way to return an error message? I thought it was by throwing a ResourceException, like so: @Post(form) public void accept(Form form)