• Post Reply Bookmark Topic Watch Topic
  • New Topic

session communication

 
sitaram irrinki
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can two session objects communicate?is it
possible for my session object to communicate with u r
session object?if it is how so
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kind of. You can create a singleton object that implements HttpSessionBindingListener. If you add that to every session that gets created, it will be notified every single time, and you can get at the newly created session. From there, you can create a global "directory" of sessions with which you can do what you like.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!