It's not in the cdi tck so I doubt it is in jboss as.
Nigel's point about scopes is very relevant.
I'm not an ACC expert, but I do use it once in a while. But to be honest, I don't know why it doesn't work. If you look at the EE spec (eg. EE 7 - Figure EE.2-1) you see that CDI & DI is in the ACC. But on the other hand, the CDI 1.0 spec (12.1. Bean archives) says "The container is not required to support application client jar bean archives." I tried several time with the appclient from GlassFish, and CDI just doesn't work (wonder if JBoss ACC allows CDI or not). The "is not required" part is frustrating.AntonioOn Fri, Nov 9, 2012 at 12:48 PM, Pete Muir <pmuir@...> wrote:
I'm not an expert in the ACC, so would need a ACC expert who knows CDI to help us define the behavior. Interested Antonio?
On 9 Nov 2012, at 12:41, Antonio Goncalves wrote:
> Hi all,
> Correct me if I'm wrong but I haven't seen any discussion on this topic. In Java EE 6 CDI doesn't work in ACC. Wouldn't it be useful to add it in EE 7 ?
> A use case I'm working on at the moment is that I have a Java SE class (running in ACC) that injects a web service reference with @WebServiceRef. With CDI enabled I could produce this reference and just @Inject it.
> What do you think ?
> Antonio Goncalves
> Software architect and Java Champion
> Web site | Twitter | LinkedIn | Paris JUG | Devoxx France
Software architect and Java Champion
Web site | Twitter | LinkedIn | Paris JUG | Devoxx France
[jsr342-experts] Re: CDI in Application Client Container