| Author |
Portlets sharing a global variable
|
Saathvik Reddy
Ranch Hand
Joined: Jun 03, 2005
Posts: 228
|
|
Hi, I want a variable to be accessible to all the portlets. How do i achieve this with out using application scope variables? Thanks,
|
 |
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Joined: Aug 26, 2006
Posts: 4967
|
|
All portlets in a war file, or all portlets in the portal? The PortletContext is global to all portlets packaged in a war, but can't be accessed outside the war. For truely global variables, you'll need to do your own implementation - maybe something as simple as a common database table all portlets can read from. In the IBM world, we often do this through a PortletService.
|
Author of Hibernate Made Easy, What is WebSphere???, JSF 2.0 Made Easy and the SCJA Certification Guides
|
 |
Saathvik Reddy
Ranch Hand
Joined: Jun 03, 2005
Posts: 228
|
|
|
I have to access all the portlets in a war file. so i will be using PortletContext. Thanks a lot for your reply.
|
 |
 |
|
|
subject: Portlets sharing a global variable
|
|
|