jsr339-experts@jax-rs-spec.java.net

[jsr339-experts] Re: [jax-rs-spec users] Re: Re: Re: FYI: ResourceContext API proposed

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Thu, 30 Aug 2012 15:28:24 +0200

On Aug 29, 2012, at 11:56 PM, Bill Burke <bburke_at_redhat.com> wrote:

>
>
> On 8/29/2012 10:09 AM, Bill Burke wrote:
>>
>> This may be supported already in CDI Beanmanager. I'll ask my CDI guys.
>>
>
> CDI supports EJB reference lookup too. CDI 1.1 is simplifying BeanManager interface too. So, I'm not 100% against this feature like I was @ManagedAsync, but I'm not in favor of it at this moment.

That's great news! Can you share the relevant docs pointers?

> As I said before, I would be interested in a Servlet.forward() feature. Something like:
>
> interface ResourceContext {
>
> void forwardFromBase(String relativePath);
> void forwardAbsolute(String path);
> }
>
>
> IMO, CDI integration with JAX-RS combined with a forwarding interface pretty much covers the use cases you're interested in.

While I'm not against the methods above, I quite strongly feel about keeping the getResource() method in. There's still world beyond CDI that I want to support. If users want to use CDI, very well. But there are users who don't.

Marek

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