• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

inter portlet application issue

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
author and cow tipper
Posts: 5009
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
joke time: What is brown and sticky? ... ... ... A stick! Use it to beat this tiny ad!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic