AFAIK, the answer is NO. You can only return values through the response 
of the request method.
On 03/13/2012 07:52 AM, Meeraj Kunnumpurath wrote:
> Hi,
>
> Does Jersey support holder objects, which can be used as out 
> parameters. What I am trying to achieve is something along the lines ...
>
> public class Holder<T> {
>     private T held;
>     public T getHeld(T held) { return held; }
>     public void setHeld(T held) { this.held = held; }
> }
>
> @XmlRootElement
> public class MyRequest {
> }
>
> @XmlRootElement
> public class MyResponse {
> }
>
> @Resource
> public class MyResource {
>
>     @POST
>     public void myMethod(MyRequest myRequest, Holder<MyResponse> holder) {
>         holder.setHeld(new MyResponse());
>     }
>
> }
>
> If there is no holder API out of the box, is there an SPI I can use to 
> plugin this behavior?
>
> Kind regards
> Meeraj
-- 
Regards,
Farrukh Najmi
Web: http://www.wellfleetsoftware.com