aspose file tools
The moose likes Portals and Portlets and the fly likes Class Loader for Portlet Application Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Reply Bookmark "Class Loader for Portlet Application" Watch "Class Loader for Portlet Application" New topic
Author

Class Loader for Portlet Application

Vikrant Pandit
Ranch Hand

Joined: Mar 27, 2006
Posts: 245
JSR 168 SAYS


The Portlet container must use the same classloader that the servlet container uses for the Web application resources in order to load the portlets and related resources within the portlet application


I cannot understand the exact importance of this statement.
Can anybody shed more light on this ?

Thanks


Vikrant Pandit
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4967

Basically, it's saying that a portlet application should behave the same way a web based application, from the perspective of the class loader, would behave if deployed to the same Servlet/JSP container upon which the portlet container is based.

If you've never been bitten in the behind by classloader problems, it probably doesn't mean much. If you have been, you'll have a bit more appreciation for the statement.

For more on classloaders and how they can really complicate a J2EE application, check out this link:

Understanding and Demystifying J2EE Class Loaders

-Cameron McKenzie


Author of Hibernate Made Easy, What is WebSphere???, JSF 2.0 Made Easy and the SCJA Certification Guides
Vikrant Pandit
Ranch Hand

Joined: Mar 27, 2006
Posts: 245
Thanks for your answer Cameron ....
It cleared up my doubts
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Class Loader for Portlet Application
 
Similar Threads
To the author: Portal applications communication on the same server
Portal Vs Portlet
Portlet environment
web server and portal server - difference
Is there any PortletContaner API ?