users@jersey.java.net

Re: [Jersey] Jersey 1.1.4 is released

From: Steven Cummings <estebistec_at_gmail.com>
Date: Fri, 13 Nov 2009 15:35:04 +0000

Thanks for the responses. I think it was worth clarifying because
programmers can currently see versions 1.1 and 1.1.1 of the jsr311-api
artifact in the m2-central repo.
--
Steven
On Fri, Nov 13, 2009 at 3:13 PM, Marc Hadley <Marc.Hadley_at_sun.com> wrote:
> On Nov 13, 2009, at 10:06 AM, Paul Sandoz wrote:
>
>>
>>  I can find no page that states this. The dev.java.net page [1] still
>>> lists it as DRAFT. The JCP page [2] doesn't have a *finish* date for Final
>>> Release. So, I assume it is released, but that's not clear to me anywhere.
>>> Thanks.
>>>
>>>
>> Maintenance Draft Review 2 has completed. Marc is responsible for the
>> jsr311.dev.java.net page and i assume he will update that once the JAX-RS
>> 1.1 maintenance release occurs.
>>
>>  Indeed I will. As soon as the spec download is staged at the JCP I'll
> update the links on the jsr311 site to point to it.
>
> Marc.
>
>
>
>>  [1] https://jsr311.dev.java.net/
>>> [2] http://jcp.org/en/jsr/detail?id=311
>>> --
>>> Steven
>>>
>>>
>>> On Thu, Nov 12, 2009 at 7:28 PM, Ori Dagan <ori.dagan_at_gmail.com> wrote:
>>> Great stuff, thanks!
>>>
>>> -----Original Message-----
>>> From: Paul.Sandoz_at_Sun.COM [mailto:Paul.Sandoz_at_Sun.COM]
>>> Sent: Thursday, November 12, 2009 6:41 PM
>>> To: users_at_jersey.dev.java.net
>>> Cc: Ori Dagan
>>> Subject: Re: [Jersey] Jersey 1.1.4 is released
>>>
>>>
>>> On Nov 12, 2009, at 5:32 PM, Ori Dagan wrote:
>>>
>>> > How exactly does this release integrates with EJB3.1?
>>> > More specifically, does it support EJB injection to resources out of
>>> > the box? (I'm currently using my own InjectableProvider for that)
>>> > I know Jersey supports exposing EJBs as root resources since 1.1.0-
>>> > ea. Anything new on this front?
>>> >
>>>
>>> You can now do this:
>>>
>>>  @Path("foo")
>>>  @ManagedBean
>>>  public class MyResource {
>>>      @EJB MyEJB ejb;
>>>
>>>      @Path("sub")
>>>      public MyEJB getSub() {
>>>          return ejb;
>>>      }
>>>  }
>>>
>>>  @Stateless
>>>  public class MyEJB {
>>>
>>>      @Context UriInfo ui;
>>>
>>>      ...
>>>  }
>>>
>>>
>>> When you annotate a resource class with @ManagedBean then injection of
>>> EE-related resources (if present) is supported. In the above the
>>> MyResource class will be managed in the scope of per-request.
>>>
>>> See here for a really simple example:
>>>
>>>
>>>
>>> http://download.java.net/maven/2/com/sun/jersey/samples/managed-beans-webapp
>>> /1.1.4/managed-beans-webapp-1.1.4-project.zip
>>>
>>> Paul.
>>>
>>>
>>> > Thanks,
>>> > Ori Dagan
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>>
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>