This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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)
It's not a secret anymore!