This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Achieving Inter-portlet communication.

 
Shah Devang
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
To add, I am using JBoss Portals.
 
ramesh kandukuri
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check this url "http://edocs.bea.com/wlp/docs92/portlets/ipc.html"


Ramesh
 
Ajith Prasad
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • 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
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic