users@glassfish.java.net

Re: JSR 250 _at_PostConstruct and _at_PreDestroy in JSR 311 (Jersey) EAR/WAR not working?

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 06 Oct 2008 11:37:45 +0200

Hi Alex,

I see you sent this to the Jersey users list as well. For the benefit
of those just on the GF users list here are links to replies on that
list:

http://markmail.org/search/?q=list
%3Anet.java.dev.jersey.users#query:list%3Anet.java.dev.jersey.users
+page:1+mid:2o5opz7wwgug2rrv+state:results

Paul.

On Oct 4, 2008, at 8:52 PM, Alex Sherwin wrote:

> I'm using Jersey 1.0 ea (early access) dist of the recently
> finalized JSR
> 311 spec. Part of that spec in section 6.2 states the following:
>
> "JAX-RS root resource classes and providers may also make use of the
> following JSR 250 lifecycle management and security annotations:
> @PostConstruct, @PreDestroy, @RunAs, @RolesAllowed, @PermitAll,
> @DenyAll and
> @DeclareRoles."
>
> However, section 6.2 begins with information speculating that
> support for
> these JSR 250 annotations may be targeted as part of the unfinished
> EE 6
> spec.
>
> In testing in glassfish v2ur2 EE5 with a WAR contained inside an EAR
> with
> the JSR 311 api/imp jars, the JSR 250 annotations are not processed
> (@PostConstruct and @PreDestroy are of particular interest to me).
>
> The JSR 311 spec states also that the Resource classes can also be
> EJBs,
> which leads me to ask if it would be possible to somehow get the EE5
> container to pick up these JSR 250 annotations.
>
> Any ideas?
>
>
> Alex Sherwin
> alex.sherwin_at_acadiasoft.com
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>