Class loader cause performance problem in Richfaces 4.1.0
Issue
- There are scenarios when resources are retrieved during no partial request processing.
-
JSF html renderer (such as ScriptRenderer from faces) require to know resources names to include them to html/head,Resources content request.
-
We have two types of resources: dynamic and static. Predefined dynamic resources (such as StateHolderResource) are read using class loader as they are java classes. Static resources are kept in resources folder as part of richfaces release jars (jquery.js, richfaces.js, etc). There is a special case with compiled css that is consider as dynamic resources but is not important in our case.
-
The problem appears when we try to load static resources using dynamic loader. This make unnecessary lookup in java class loader space which cost time and of course we miss the call as static resources not exists there.
Environment
- Web FrameWork Kit (WFK)
- Richfaces 4.1.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.