Yes, Yes, No. Classes that extend Restlet (e.g. Application) are wired in, long lived elements of the web application plumbing. They need to be thread safe, as multiple requests in different threads will traverse them. Classes that extend Resource are instantiated per request. They need not be thread-safe.
On Tue, Jan 6, 2009 at 6:23 AM, <[email protected]> wrote: > 1) Is ServletServer.createApplication() called only once during application > lifetime? > > 2) Is Application.createRoot() called only once during application lifetime? > (Probably a positive answer to 1 will also answer this) > > 3) Are resource re-usable? I mean, if I have an instance of a Resource, may I > call init() in order to make the same instance serve different requests?

