users@glassfish.java.net

Re: Annotation/DD questions....

From: vince kraemer <Vince.Kraemer_at_Sun.COM>
Date: Thu, 22 Jun 2006 17:53:50 -0700

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?

Are there other annotations that cannot be overridden in the DD?

Thanks,
vbk