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.
Joined: Jun 03, 2005
I have to access all the portlets in a war file. so i will be using PortletContext. Thanks a lot for your reply.