• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Achieving Inter-portlet communication.

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I have a search portlet. There is one search portlet, and one or more results portlets. Each of these portlets are deployed as different war files. What I need is, if user enters some search string, I need to pass the search string to other portlets. Is there any way to achieve this? Since portlets are part of different applications, using APPLICATION of portlet session will not help. I need to have different applications for each portlet since they are all loosely coupled. Each search result portlet will show different results. User has the freedom of selecting search result portlets as per their convenience.

Hope the requirements are clear?

Thanks In Advance
Devang Shah
 
Shah Devang
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To add, I am using JBoss Portals.
 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check this url "http://edocs.bea.com/wlp/docs92/portlets/ipc.html"


Ramesh
 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can check this URL for InterPortlet Communication

http://docs.jboss.org/jbportal/v2.2/reference-guide/en/html/ipc.html
 
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
The big question is 'how are you deploying these portlets?'

If the portlets are packaged in a common war file, they can share data through the PortletSession, but only if you use the application scope. The application scope of the portlet session makes data accessible to all portlets in a common war file, but not to all portlets on the portal server as some incorrectly believe.

Here's a free tutorial on developing portlets and using the various portal session scopes:

CBT Tutorial on Developing Portlets using the PortletSession Application Scope

If the data is not in a common war, you've got some problems. Maybe a common database table for sharing portlet data? IBM provides Click to action services, but those are proprietary.

-Cameron McKenzie
 
reply
    Bookmark Topic Watch Topic
  • New Topic