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.
Bill
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com