anything thats possible in plain java class is possible in EJB..only that EJB spec says somethings are not advisable like for instance, multi-threading.
Joined: Feb 17, 2005
Some containers have tools that allows admins to force garbage collections though, but I'm not sure if behind the scene the implementation calls Runtime.gc(). On the other hand you know that this is not a very good practice and calling the gc is only a hint to jvm and doesn't necessarily implies that the garbage collector will run. Regards.