Can I invoke Runtime.gc() in an
EJB?
As of my knowledge Runtime.getRuntime().gc() is a
Java command and we can add it in EJB and we can compile & deploy successfully. while application server executing the line it will request gc. If suppose gc starts then the EJB objects are destroyed ? or any other effect ?
Application server will clear the objects for us rite ?
Any difference bettween Runtime.getRuntime().gc() and System.gc() ?