[jax-rs-spec users] [jsr339-experts] Re: Application class questions

From: Sergey Beryozkin <>
Date: Tue, 21 Aug 2012 10:50:45 +0100

On 20/08/12 17:50, Bill Burke wrote:
> I have a few questions on the Application class:
> * Can you have more than one in one WAR?

I think so, every Application can have its own Application Path and
likewise a single war can have many servlet entries.

> * Do they share providers? Or are their providers separate and
> applicable only to the resources that are deployed by that Application
> class?

IMHO this can not be strictly defined. For example, when using Spring,
one can have providers shared between JAX-RS endpoints if needed,
similarly there could be framework specific mechanisms to have providers
shared between or specific to Applications

Cheers, Sergey

> Neither of these are covered in the spec as far as I can tell.