Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
  • Tim Holloway
  • Carey Brown
  • salvin francis

parent first -> parent last

Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In IBM Web Sphere Portal Server Test Environment (may be in Application Server also), why we set classloader mode to parent last from parent first.

The classloader mode is in Application.

[ December 22, 2005: Message edited by: rathi ji ]
Posts: 4112
Google Web Toolkit Eclipse IDE Flex
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its a *very important setting* that effects static objects (or singletons) as well a versioning of jars.

I'll give you a common example. Lets say you have a utility jar that you want every module on the server to use so you add it to the server's WAS_HOME library folder. Next, one of your users (say you have hundreds) adds the same jar to their EAR for deployment on the server.

Now, if the jars are of different versions, then the PARENT_FIRST or PARENT_LAST will have a big impact on which run time version files are use. Assume the versions are the same though, static objects will still be affected since singletons are created at the level the class loader is declared so. So PARENT_FIRST would have them all sharing the same singleton and PARENT_LAST would have them creating their own if they had a local copy of the jar.
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rathi,
beware of the classloader, since Parent_Last would give higher priority to your web app classloader over the server classloader.
Remember that when Websphere loads a class A, every class being instanced from that class are going to be loaded by the classloader that loaded class A...if they aren't in the same classloader environment then an Exception would be trown.

best regards!
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!