aspose file tools*
The moose likes Struts and the fly likes Does action and bean classes are garbage collected? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Does action and bean classes are garbage collected?" Watch "Does action and bean classes are garbage collected?" New topic
Author

Does action and bean classes are garbage collected?

Deepa More
Ranch Hand

Joined: May 22, 2006
Posts: 68
I am profiling my application using JProfiler.
Our App. server is Websphere5.1.
In recorded objects though I explicitly calls gc, bean and action classes remains there.
Is there any way to gc?
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
This makes sense for Action classes since Struts instantiates a single instance and reuses that same instance for multiple users. Not sure about the forms. If you have your forms configured for session scope (the default) then there will be a reference to them in the session so they will not be garbage collected.

- Brent
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Does action and bean classes are garbage collected?
 
Similar Threads
transaction issue
Action Class Not Called
Form Beans necessary?
Maintaining form data across pages...
Struts and Sequence Diagrams