On 26.01.2010 18:19, nani2ratna wrote:

Hi Guys,

I came to know that there is a scope attribute that we need to consider if
we manage all our actions through spring.
default it is singleton. Means it will create only one instance.
If we change scope = "prototype", it will create as many instances.
scope = "request", it will create for every request,
scope="session" means it will create one instance for every user sesson.

I think we need to change it to scope="prototype".
Do we need to do this only for action classes or we need to do for dao's and
service classes which we call them from action classes.
Can anybody please explain....

Usually DAOs and other service layer beans should be defined with singleton scope, only action beans should be with prototype.

I'm not sure how struts with action beans declared with request scope would 
behave in non-trivial situations.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to