users@jax-rs-spec.java.net

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

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Tue, 21 Aug 2012 15:51:06 +0200

On Aug 20, 2012, at 6:50 PM, Bill Burke <bburke_at_redhat.com> wrote:

> I have a few questions on the Application class:
>
> * Can you have more than one in one WAR?

I'd say yes.

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

I'd say it depends whether or not package scanning kicks in. And even then the provider instances would not be shared IMO.

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

If this is something that needs to be clarified in the spec, then please file a Jira issue.

Thanks,
Marek

>
> --
> Bill Burke
> JBoss, a division of Red Hat
> http://bill.burkecentral.com