javax.enterprise.context
Annotation Type ApplicationScoped


@Target(value={TYPE,METHOD,FIELD})
@Retention(value=RUNTIME)
@Documented
@NormalScope
@Inherited
public @interface ApplicationScoped

Specifies that a bean is application scoped.

The application scope is active:

The application context is shared between all servlet requests, web service invocations, EJB remote method invocations, EJB asynchronous method invocations, EJB timeouts and message deliveries to message-driven beans that execute within the same application. The application context is destroyed when the application is shut down.

Author:
Gavin King, Pete Muir



Copyright © 2008-2012 JBoss by Red Hat, Inc.. All Rights Reserved.