Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

portlet 2.0 (jsr286) development with spring

We are discussing whether it's a good idea to switch from plain portlet development on a liferay installation to spring webmvc portlet based development.

We're starting the development of some portlets soon, so now is the time. But the problem I see is that we'd like to use some of the portlet 2.0 features, which won't work with versions older than spring 3.0. (Right?)

Has anyone insight, if it's worth the waiting? (When is 3.0 scheduled anyway?) Is the current milestone stable enough?

Our first real release will be in the last quarter of the year, so the springsource guys have some time left to get a final out of the door... ;-)

Any ideas?

UPDATE

So, Spring 3 has been released and it supports all JSR286 features we need. (I think it's a pretty complete support for the JSR286 features)

The only drawback I am seeing is the documentation which is not up to speed in regard to the annotations.

like image 959
Patrick Cornelissen Avatar asked Apr 07 '09 12:04

Patrick Cornelissen


People also ask

What is portlet context in spring?

Spring Portlet MVC supports beans whose lifecycle is scoped to the current HTTP request or HTTP Session (both normal and global). This is not a specific feature of Spring Portlet MVC itself, but rather of the WebApplicationContext container(s) that Spring Portlet MVC uses.

What is jsr286?

JSR 286 (Portlet 2.0) defines a lifecycle for events, so that eventing is possible between portlets that are in different web applications. An event is a lifecycle operation that occurs before the rendering phase. Events can be described as a loosely coupled, brokered means of communication between portlets.


3 Answers

We use Spring Portlet MVC 2.5 on Liferay and we have excellent results. Most of JSR-286 functionality(like events) can be reached be extending DispatcherPortlet class.

There is still a lot of bugs open for upcoming 3.0 release, so I would be rather conservative and stay with stable&mature version 2

like image 169
Jaromir Hamala Avatar answered Sep 28 '22 07:09

Jaromir Hamala


The spring framework has an excellent track record of code quality. In the past their M releases were of high quality, so I would not be afraid to use it.

like image 39
Kees de Kooter Avatar answered Sep 28 '22 06:09

Kees de Kooter


Juergen Hoeller gave Jul 2008 as the estimated release date for Spring 3.0:

http://www.springify.com/archives/15

I think they're late. 8)

Matt Raible lamented the fact in Oct 2008, almost six months ago:

http://raibledesigns.com/rd/entry/the_colorado_software_summit_and

I wonder if the new professional versus open source model has affected availability.

They also have the Spring DM, Spring Blaze, and Spring Integration work going on now.

Given their past history of quality releases, I'd bet that they're resisting the urge to release early in order to make certain the code is up to their standards.

like image 40
duffymo Avatar answered Sep 28 '22 06:09

duffymo