It's not a secret anymore!
The moose likes Portals and Portlets and the fly likes inter portlet application issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "inter portlet application issue" Watch "inter portlet application issue" New topic

inter portlet application issue

nandini lagunia
Ranch Hand

Joined: May 05, 2009
Posts: 57
Hi All,
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.

I'd be more than happy to get any kind of help.
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968

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.

-Cameron Mckenzie
nandini lagunia
Ranch Hand

Joined: May 05, 2009
Posts: 57
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.
I agree. Here's the link:
subject: inter portlet application issue
It's not a secret anymore!