I am a long time java web developer but I am new to portlets technology.
Currently I am in the stage of finding my options.
I have tried Liferay and although it is very cool, it is a bit heavy for my needs.
Can you recommend a more lightweight portlet container?
The Java Portlet Specification defines the contract between a compliant portlet container and portlets. This standardization allows for portability of portlets between portal implementations. The Java Portlet Specification is very similar to the Java Servlet Specification by design.
WebLogic Portal produces Java portlets that conform to the JSR 286 specification and can be used universally across portals that support JSR 286 portlet containers. Oracle Enterprise Pack for Eclipse lets you export Java portlets to a supported archive file (WAR, JAR, or ZIP) that can be deployed on any supported server.
The Java Portlet Specification is very similar to the Java Servlet Specification by design. In fact, the Java Portlet Specification is built on top of the Java Servlet Specification 2.3 and Java Server Pages version 1.2 and leverages its objects whenever possible.
For portlet-served resources, the portlet container acts as a proxy for accessing the resource; the portlet itself has full control over the resource response. Calls to the portlet's serveResource() method usually occur after a call to render(), if the portlet's output from the render contained any portlet-served resource links.
I think that the JSR-168/286 reference implementation Apache Pluto is probably going to be as lightweight as you are going to get.
Most, if not all, portlet products are targeted firmly at the enterprise market which means they tend to come shipped as part of a 'heavyweight' enterprise portal product, even though the portlet (producer) component should generally be fairly lightweight.
Portals are quite heavyweight by nature, but I've found the Pluto portlet container useful for testing individual portlets as it can be set up on Tomcat or Jetty in a few minutes and requires minimal initial configuration. Pluto is used as the portlet container by Jetspeed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With