• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

parent first -> parent last

 
Ranch Hand
Posts: 3852
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

Thanks.
[ December 22, 2005: Message edited by: rathi ji ]
 
author
Posts: 4342
40
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Talk sense to a fool and he calls you foolish. -Euripides A foolish tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic