users@glassfish.java.net

Re: Annotation/DD questions....

From: Cheng Fang <Cheng.Fang_at_Sun.COM>
Date: Fri, 23 Jun 2006 09:48:52 -0400

vince kraemer wrote:

> Cheng,
>
> Thanks for the info, but now, your response has triggered more
> questions.... that I have placed in-line...
> Cheng Fang wrote:
>
>> Pls see inline comments.
>>
>>>
>>> say I have a stateless bean like
>>>
>>> [snipped for brevity]
>>> If I had another interface
>>>
>>> @Local
>>> public interface LLStatelessLLocal {
>>> ...
>>> }
>>>
>>> that I wanted to associate with the (original) bean, would I put
>>>
>>> <ejb-jar version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"....>
>>> <enterprise-beans>
>>> <session>
>>> <ejb-name>StatelessL</ejb-name>
>>> <local>ejb3.LLStatelessLLocal</local>
>>> </session>
>>> ....
>>>
>>> or do I need to put in more info than that. bonus q: is the local
>>> interface ejb3.StatelessLLocal still "available".
>>>
>>>
>>>
>> Can't do that. These are component-defining annotations and can't be
>> changed/overridden/augmented by xml descriptor.
>
> So, is there a list of component-defining annotations in the spec or
> is this just available in scattered references in the spec?
>
JavaEE 5 platform spec covers general rules, and ejb 3 spec has more
ejb-related requirements in various sections.

This is one section in JavaEE 5 platform spec:
EE.5.2.4Annotations and Deployment Descriptors

> Are there other annotations that cannot be overridden in the DD?
>
Not that I know of.

> Thanks,
> vbk
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>