File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes BEA/Weblogic and the fly likes weblogic class loaders(ejb and web) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "weblogic class loaders(ejb and web)" Watch "weblogic class loaders(ejb and web)" New topic

weblogic class loaders(ejb and web)

srinivasrao marri
Ranch Hand

Joined: Feb 13, 2001
Posts: 61
Now a days ever application/web server provider is giving us the class loaders, like ejb class loader and web classloader. why they are providing these class loaders? what are the advantages i get by using them?
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
The classloaders are a part of the J2EE specification and also an essential part of a J2EE developer's nigthmares...
Basically the existence of several classloaders can be seen as a "sandboxing method". That is, to allow two applications to coexist without interfering each other. For example, if two enterprise applications are being deployed into a single WebLogic and both are using Log4J for logging, would you like both of the applications to use the same logger instances due to a singleton class being "shared" between the two applications?

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
I agree. Here's the link:
subject: weblogic class loaders(ejb and web)
jQuery in Action, 3rd edition