This week's book giveaways are in the Jython/Python and Object-Oriented programming forums.
We're giving away four copies each of Machine Learning for Business: Using Amazon SageMaker and Jupyter and Object Design Style Guide and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning for Business: Using Amazon SageMaker and JupyterE this week in the Jython/Python forum
or Object Design Style Guide in the Object-Oriented programming forum!
  • 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 ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

parent first -> parent last

 
Ranch Hand
Posts: 3850
  • 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.

Thanks.
[ December 22, 2005: Message edited by: rathi ji ]
 
author
Posts: 4173
29
jQuery Eclipse IDE Java
  • 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.
 
Greenhorn
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!
 
This tiny ad is suggesting that maybe she should go play in traffic.
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!