I am new to portlet and stuck in the very beginning.
Well I am using Open Portal with netbeans.
My problem is:-
There's one portlet application which creates quote, say QuotePortlet. I have to
build a demo ShoppingPortlet which can send event to the QuotePortlet and
get the event from QuotePortlet. I have accomplished it using WSRP but it doesn't
serve my purpose.
My goal is to access the ShoppingPortlet through some URL. When we submit the
quote info through ShoppingPortlet, the data (which is input for the QuotePortlet for
quote creation) should be accessible to QuotePortlet( which is on remote machine).
Once the user submits the quote, the view of QuotePortlet should be viewed on
ShoppingPortlet so that user can create the quote through shopping portlet only.
Well, JSR168 doesn't really provide any means for sharing data between portlets. You can use the APPLICATION_SCOPE of two portlets that are within the same war file to share data, but the portlets need to be running on the same client machine for the same user.
One solution might just be to write to a central database table, and have both portlets share the data in that central database table. One portlet could write, and I guess the other portlet could poll for changes.
I am working on JSR286 specifications. Both the portlets are altogether different application
which shares the data through events.
Isn't there any way other than writing to database? Because one of the portlet(ShoppingPortlet) application has
already been developed and we can't touch the code now.