GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  J2EE  >  EJB
Go To First  |  Previous Question  |  Next Question 
 EJB  |  Question 58 of 175    Print  
Can I invoke Runtime.gc() in an EJB

Answer posted by Mohan on 2005-05-21 19:26:48: No



  
Total Answers and Comments: 7 Last Update: October 09, 2006   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
May 21, 2005 19:26:48   #1  
Mohan        

RE: Can I invoke Runtime.gc() in an EJB
No
 
Is this answer useful? Yes | No
September 02, 2005 12:49:48   #2  
Dinesh        

RE: Can I invoke Runtime.gc() in an EJB
Yes, we can give a call to Runtime.gc() in EJB
 
Is this answer useful? Yes | No
January 20, 2006 03:28:54   #3  
Gaurav        

RE: Can I invoke Runtime.gc() in an EJB
Who is right Mohan or Dinesh
 
Is this answer useful? Yes | No
January 24, 2006 11:20:45   #4  
vani        

RE: Can I invoke Runtime.gc() in an EJB

No. You  cannot invoke Runtime.gc() in an EJB.


 
Is this answer useful? Yes | No
February 15, 2006 02:31:17   #5  
dev        

RE: Can I invoke Runtime.gc() in an EJB
vani, plz give me brief answer about why we cannot use Runtime.gc() in EJB 
 
Is this answer useful? Yes | No
February 27, 2006 01:21:58   #6  
Rajendra        

RE: Can I invoke Runtime.gc() in an EJB

 no we cannot invoke Runtime.gc() in an EJB

Because Enterprise Beans doesn,t need to call gc.


 
Is this answer useful? Yes | No
October 09, 2006 09:31:26   #7  
L.GANESH        

RE: Can I invoke Runtime.gc() in an EJB

Hi,

We can call Runtime.gc() explicitly as you (all) described. But some time "May be usefull". Otherwise "No Use". When ?. Note that If we call garbage collection explicitly, this "WILL NOT GARBAGE COLLECT ANY ONE EJB OBJECT or TYPE of EJB bean object" These EJB (Any Type Bean) objects creation & Destroy is handled by Container "Explicitly logic" not by JVM. It may use- If we use any other "Supported Java Class Creation and other NON-EJB Objects will be garbage collected." As Explanation by Sun : "We can call, but no guranty or cannot be forced to garbage collection"

I hope that you got it.

Thanks & Regards,

L.GANESH


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape