1.

Differentiate Global,request & Session Scopes?

Answer»

Global: components are accessible from all other components.Not available across ATG servers, each server has its own copy of global scoped component.

Session: means every user of the application gets a separate copy of the component, and component exists for duration of the user’s session.

REQUEST : A component is called in for returning the values of a search, so each time a search is triggered an object INSTANTIATION happens and its gone when the result PAGE is closed.Which means the scope of the search component is request.

EG:-formhandlers normally have a request scope.

Global: components are accessible from all other components.Not available across ATG servers, each server has its own copy of global scoped component.

Session: means every user of the application gets a separate copy of the component, and component exists for duration of the user’s session.

Request : A component is called in for returning the values of a search, so each time a search is triggered an object instantiation happens and its gone when the result page is closed.Which means the scope of the search component is request.

Eg:-formhandlers normally have a request scope.



Discussion

No Comment Found