On May 12, 2008, at 11:33 AM, Bill Burke wrote:
> I think you might want to change the spec on this...
>
> AFAIK, there is no portable way for a JAX-RS implmentation that is
> standalone and usable in *any* servlet container to implement
> @RunAs. There just isn't a EE API that allows you to set the RunAs
> principal.
>
The spec doesn't require support for @RunAs in a standalone
implementation. Even if the currently non-normative section 6.2 is
made normative it would only apply to an EE container as a whole so I
think it would be OK for an implementation to rely on a private
contract in that case.
I think the same applies for several of the annotations mentioned in
6.2 and, IIRC, the servlet spec works the same way.
Marc.
---
Marc Hadley <marc.hadley at sun.com>
CTO Office, Sun Microsystems.