Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

spring global session scope

 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How does spring bean scope "global session " work in portlet application ?
 
Ashish Sarin
author
Ranch Hand
Pie
Posts: 444
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Pradeep,

Portlet sessions have 2 scopes - portlet and application. The data placed in portlet scope is not accessible to other portlets in the same portlet application. The data placed in application scope is accessible to other portlets and servlets in the same portlet application. The concept of global session scope is specific to portlets, wherein the bean is placed in the application scope, so that it is accessible to all the servlets/portlets in the portlet application.

regards
ashish
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic