Came across a simple how-to on inter portlet communication. I’ve dealt only with portlet (1.x) briefly so I didn’t know that there was not a standard way to ‘communicate’ between portlets. Because portlets are like tiny programs running on (Java) web servers, without a standard way of sending data to each other, functionality is limited or you’ll need workarounds, which would lead to 101 ways to send data, non of which is compatible. Portlet 2.0 it seems are standardizing on JAXB (Java XML binding) to send data. It’s a publisher-subscriber model, which means you declare events (they’re ‘published’ when the events fire) and portlets can ’subscribe’ to the events. It seems pretty straight forward so it seems this is a Good Thing.
Read the article: The Portlet Packet: Inter-portlet communication in Portlet 2.0 - JavaWorld



