• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Class Loader for Portlet Application

 
Vikrant Pandit
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Vikrant Pandit
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your answer Cameron ....
It cleared up my doubts
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic