javax.enterprise.context
Annotation Type SessionScoped


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

Specifies that a bean is session scoped.

The session scope is active:

The session context is shared between all servlet requests that occur in the same HTTP session. The session context is destroyed when the HTTPSession times out, after all HttpSessionListeners have been called, and at the very end of any request in which invalidate() was called, after all filters and ServletRequestListeners have been called.

Author:
Gavin King, Pete Muir



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