users@glassfish.java.net

Re: Slow to instaniate an object in Glassfish

From: <glassfish_at_javadesktop.org>
Date: Tue, 27 May 2008 18:19:57 PDT

Are these simple object creations?

MyObject o = new MyObject();

Or something different?

The ClassLoader would only affect the initial loading of the class, but instantiating a new instance is out of the domain of the ClassLoader. The ClassLoader is an attribute of the class, not the individual instances.

So, unless you're doing something special and wacky with class loaders, or something exotic in the constructors, I don't know how Glassfish would be any different from Jetty.
[Message sent by forum member 'whartung' (whartung)]

http://forums.java.net/jive/thread.jspa?messageID=276914