Re: Struts2 Action instances are not getting garbage collected

2008-03-26 Thread Alex Shneyderman
> yeah, for some action classes spring inject singleton scoped service > dependecies so that might be reason for those action for not getting garbage > collected This can not be. The only way your action will not be garbage collected if that action instance is refferenced from a long lived obje

Re: Struts2 Action instances are not getting garbage collected

2008-03-26 Thread Prajapati Manish Narandas
gt; > > > Can anybody tell me a way so i can find all action objects garbage > > collected once action class has done > > its work. > > > What makes you think the action instances are not being garbage > collected? As long as they are request scoped they will be e

Re: Struts2 Action instances are not getting garbage collected

2008-03-26 Thread Laurie Harper
100 % garbage collection of my all action class objects. Can anybody tell me a way so i can find all action objects garbage collected once action class has done its work. What makes you think the action instances are not being garbage collected? As long as they are request scoped they will be

Struts2 Action instances are not getting garbage collected

2008-03-26 Thread Prajapati Manish Narandas
Hi All, I am using struts2 with spring object factory. Here, spring is creating action class objects with request scope and injecting service layer dependency and service layer objects are singleton scope. here, even i have given request scope it doesnt ensure 100 % garbage collection of my all a

Re: Action instances

2007-09-13 Thread Paul Benedict
It doesn't matter as long as you can justify it :-) If the behaviors "belong" together, you may choose to use a Dispatch-like action. Otherwise, make them separate. Alot of this is stylistic but you'll figure out the answer based on how related the business code is. Paul On 9/12/07, Zhang, Larry

Action instances

2007-09-12 Thread Zhang, Larry \(L.\)
Say I have two version design: (1) Some other things go here... onePeople one Employee (2) Some other things go here... one People on Employee The verion 1 has three actions to render three pages, while version 2 use one action to render three pages. The arguments for version 1 is that t

Re: What exactly the scope of instance variables and Action instances

2007-06-21 Thread Dave Newton
--- tom tom <[EMAIL PROTECTED]> wrote: > The question we have is, What exactly the life cycle > and scope of these Actions and Member variables, > When it will be released from the value stack, how > long will it be there in the value stack. The following: http://struts.apache.org/2.x/docs/big-

What exactly the scope of instance variables and Action instances

2007-06-21 Thread tom tom
Hi, As we dont have ActionForms seperately as in Struts 1.X. We introduce member variables in the Action classes. All our jsp field elements are mapped to these member variables. The question we have is, What exactly the life cycle and scope of these Actions and Member variables, When it will b