users@javaee-spec.java.net

[javaee-spec users] Re: [jsr342-experts] CDI in Application Client Container

From: Nigel Deakin <nigel.deakin_at_oracle.com>
Date: Fri, 09 Nov 2012 13:00:59 +0000

What scopes would be available in the ACC? Just application scope? If every injected object had the lifetime of the JVM
then it wouldn't very useful when injecting expensive resources like JMSContext.

Nigel

On 09/11/2012 11: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 <http://www.antoniogoncalves.org> | Twitter <http://twitter.com/agoncal> | LinkedIn
> <http://www.linkedin.com/in/agoncal> | Paris JUG <http://www.parisjug.org> | Devoxx France <http://www.devoxx.fr>