• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Info about clustering

 
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have a servlet which authenticates the user while he is logging in.If another person logs in with the same name , the fie\rst user will be displayed a message saying that the same user has logged on in another machine with the same login(The same scenario as in Yahoo messenger and AOL chat).
For this to achieve I am using HTTPSession to know the username who all have logged on
If I use clusters for load balancing and failover, whether my info in HTTPSession will be validated(replicated) for all the servers in the cluster so that any point of time only one user with the same username can log on.
Its urgent
Thanx in advance

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Session details are replicated to all servers in the cluster even though weblogic. Weblogic suggests that if the object is big(unlike RMI stub) do not store the information in the Session since it may have an effect on performance. I think there is some better way like you can use in-memory replication(as weblogic calls it) or database storage since it is not replicated.
If session is created and user tries to login from another computer one more time, then I feel it will be a new session. Because that browser and computer will not have the same cookie and it will be a new session only. ( All user are treated as guest(in weblogic unless specified) unless they have specific username access and then it does not matter.)
You can check whether it is a new session by using session.isNew() method to find out whether is is a new session.
Hope it helps.

Regards,
K.Subramanian


[This message has been edited by subramanian_k (edited December 08, 2000).]
reply
    Bookmark Topic Watch Topic
  • New Topic