Ah, thanks, Jerome. Of course, the NEXT obvious question is... should
there be some kind of facility in the spec by which you can say "annotate
these classes," or "this classloader participates in the annotation
mechanism?"
On Fri, 14 Apr 2006, Jerome Dochez wrote:
> Hi Joe
>
> you would need to look at the JSR 244 Java EE 5 platform, chapter 5.2.3 to
> find the exhaustive list of eligible components for annotation. In the web
> space, In web space, I believe you can annotate JSF Managed classes,
> Servlet, Servlet filters, event listeners and JSP tag handlers and tag
> library event listeners.
>
> So if your webwork component is not explicitly declared in the web.xml as
> being one of the above mentioned type, annotation processing will not happen
> and therefore injection neither.
>
> HTH, jerome
>
> Joseph B. Ottinger wrote:
>> What are the rules that determine whether EJB injection takes place? I am
>> playing about with using webwork in a web application, and I have an @EJB
>> annotation in an action class, but the @EJB annotation isn't used. In
>> servlets, obviously, it works, and in JSF as well, but I don't know how
>> webwork's classloading is different such that the annotation isn't being
>> processed.
>>
>> Any clues?
>>
>> -----------------------------------------------------------------------
>> Joseph B. Ottinger http://enigmastation.com
>> Editor, http://www.TheServerSide.com joeo@enigmastation.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
-----------------------------------------------------------------------
Joseph B. Ottinger
http://enigmastation.com
Editor,
http://www.TheServerSide.com joeo@enigmastation.com