Not sure if you can annotate an annotation :-). You can place
@DataSourceDefinition on a bean declared @Alternative though. You
could of course modify XML deployment descriptors at runtime too.|
On 1/6/2012 2:16 PM, Antonio Goncalves wrote:
I will file an issue but the purpose of my email was really to have @Alternative on a @DataSourceDefinition (and JMS definitions in the future). Something that sounded obvious to me (having several alternatives definitions) is not possible in CDI 1.0. Hope it will be in 1.1.
[javaee-spec users] Re: [jsr342-experts] Re: Re: Datasources and other resources defined on CDI beans