File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Portals and Portlets and the fly likes web server and portal server - difference Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "web server and portal server - difference" Watch "web server and portal server - difference" New topic
Author

web server and portal server - difference

ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Hi,
From the JSR Portlet 168 Specification, it seems like portal server doesn't include portal container. It (portal server) is the mediator between client and portal container.

In case of servlet, web server contains web container.

Am I going right?

Thanks.
Cameron McKenzie
Greenhorn

Joined: Feb 24, 2005
Posts: 12
Portlets run within a portlet container. It's still there.

-Cameron


Where is Springfield? <a href="http://www.pickeringisspringfield.com" target="_blank" rel="nofollow">http://www.pickeringisspringfield.com</a><br /> <br />Portlet Tutorials & Java Certification mock exams: <a href="http://www.scja.com" target="_blank" rel="nofollow">http://www.scja.com</a><br /> <br />WebSphere Stuff: <a href="http://www.pulpjava.com" target="_blank" rel="nofollow">http://www.pulpjava.com</a>
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Originally posted by Cameron McKenzie:
Portlets run within a portlet container. It's still there.

-Cameron


Please have a look at page 20 of Java Portlet Specification Version 1.0. And my question is not about portlet, it's about portal server and portlet container. Does portal server contian portlet container (like web server contains servlet container or web container)???

Thanks.
Cameron McKenzie
Greenhorn

Joined: Feb 24, 2005
Posts: 12
You might be getting hung up on semantics too much.

Strictly speaking, a web server does not have a servlet engine or container. A web server handles http requests, and maps those requests to files. Requests for Servlets or JSP's are then directed to an application server such as Tomcat. Apache is a web server, and it does not contain a Servlet engine.

Portlets run in a portlet container. All the services of the portal server are provided to a portlet through the container. Without the container, a portlet could not run.

If you're quoting the spec, here's a snippet from the JSR286 specification (Portal 2.0)



A portlet container runs portlets and provides them with the required
runtime environment. A portlet container contains portlets and
manages their lifecycle. It also provides persistent storage for portlet
preferences. A portlet container receives requests from the portal to
execute requests on the portlets hosted by it.
A portlet container is not responsible for aggregating the content
produced by the portlets. It is the responsibility of the portal to handle
the aggregation.
A portal and a portlet container can be built together as a single
component of an application suite or as two separate components of a
portal application.



If a portal server runs portlets, it needs a portlet container. I guess, theoretically, you could have a portal server that doesn't run portlets, in which case, I guess it wouldn't need a portlet container. Of course, what good would a portal server be if it didn't run portlets?

-Cameron McKenzie
[ July 06, 2007: Message edited by: Cameron McKenzie ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: web server and portal server - difference