aspose file tools
The moose likes Portals and Portlets and the fly likes Achieving Inter-portlet communication. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Reply Bookmark "Achieving Inter-portlet communication." Watch "Achieving Inter-portlet communication." New topic
Author

Achieving Inter-portlet communication.

Shah Devang
Greenhorn

Joined: Jul 27, 2006
Posts: 12
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

Joined: Jul 27, 2006
Posts: 12
To add, I am using JBoss Portals.
ramesh kandukuri
Ranch Hand

Joined: Jan 10, 2001
Posts: 47
Check this url "http://edocs.bea.com/wlp/docs92/portlets/ipc.html"


Ramesh
Ajith Prasad
Ranch Hand

Joined: Aug 22, 2006
Posts: 66
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

Joined: Aug 26, 2006
Posts: 4967

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


Author of Hibernate Made Easy, What is WebSphere???, JSF 2.0 Made Easy and the SCJA Certification Guides
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Achieving Inter-portlet communication.
 
Similar Threads
WebSphere Portal 348 - prime questions/answers
Difference between portlet and application
How to display the results of one portlet in another portlet(JSR 168 )?
Portlets-Servlets-what's the difference
PORTAL session NOT PortletSession