Correct me if I'm wrong but I think we should integrate with some JNDI tree
for Servet Spec implementation.
And if we will integrate with JNDI than @EJB is just looking up in correct
subtree of JNDI.
HTH,
Hubert.
On Mon, Sep 21, 2009 at 9:27 PM, Survivant 00 <survivant00_at_gmail.com> wrote:
> yes I know. my question was more Which annotations we want to support ?.
>
> for me supporting is more than just loading the config.
>
> like EJB's annotation (JSR220)
>
> we will load the annotations (if in the list supported.. ex :
> javax.servlet.Servlet), but after that.. we won't used most of them tight
> now.
>
> that's what more my question.
>
> There is a issue for that :
> https://grizzly.dev.java.net/issues/show_bug.cgi?id=729
>
>
> WOW.. java.net is so fast today..
>
> 2009/9/21 Hubert Iwaniuk <neotyk_at_kungfoo.pl>
>
> Hi Sebastien,
>>
>> Please take a look at "SRV.14.5 Annotations and Resource Injection" from
>> Servlet 2.5 spec.
>> Classes that annotation can be applied to:
>>
>> - javax.servlet.Servlet
>> - javax.servlet.Filter
>> - javax.servlet.ServletContextListener
>> - javax.servlet.ServletContextAttributeListener
>> - javax.servlet.ServletRequestListener
>> - javax.servlet.ServletRequestAttributeListener
>> - javax.servlet.http.HttpSessionListener
>> - javax.servlet.http.HttpSessionAttributeListener
>>
>> Annotations to be processed:
>> SRV.14.5.1 @DeclaresRoles . . . . . . . . . . . . . . . . . . . . . . . .
>> 156
>> SRV.14.5.2 @EJB Annotation . . . . . . . . . . . . . . . . . . . . . . .
>> 157
>> SRV.14.5.3 @EJBs Annotation . . . . . . . . . . . . . . . . . . . . . .
>> 157
>> SRV.14.5.4 @Resource Annotation . . . . . . . . . . . . . . . . . . . 158
>> SRV.14.5.5 @PersistenceContext Annotation . . . . . . . . . . . 158
>> SRV.14.5.6 @PersistenceContexts Annotation . . . . . . . . . . 159
>> SRV.14.5.7 @PersistenceUnit Annotation . . . . . . . . . . . . . . 159
>> SRV.14.5.8 @PersistenceUnits Annotation . . . . . . . . . . . . . 159
>> SRV.14.5.9 @PostConstruct Annotation . . . . . . . . . . . . . . . 160
>> SRV.14.5.10 @PreDestroy Annotation . . . . . . . . . . . . . . . . . 160
>> SRV.14.5.11 @Resources Annotation . . . . . . . . . . . . . . . . . . 161
>> SRV.14.5.12 @RunAs Annotation . . . . . . . . . . . . . . . . . . . . 161
>> SRV.14.5.13 @WebServiceRef Annotation . . . . . . . . . . . . . 162
>> SRV.14.5.14 @WebServiceRefs Annotation . . . . . . . . . . . . 162
>>
>> I think that you could build WebApp out of annotations and merge it with
>> one from web.xml.
>> Same as we do now with webdefault WebApps.
>>
>> Do we have a ticket for it?
>>
>> HTH,
>> Hubert.
>
>