This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "inter portlet application issue" Watch "inter portlet application issue" New topic
Author

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
    
    1

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: inter portlet application issue