aspose file tools
The moose likes Servlets and the fly likes session synchronisation Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "session synchronisation" Watch "session synchronisation" New topic
Author

session synchronisation

thomas davis
Ranch Hand

Joined: Feb 01, 2003
Posts: 207
What is session synchronisation?
How can we implement this feature in our application?
How useful is it in the web applications?
Is there any performance issues?
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12271
    
    1
The only point in synchronizing access to a session is when you may have multiple requests from the same user (same sessionID) at one time.
This can happen more easily than you might think IF you have created a page that pulls lots of resources from servlets - for example with a frameset, or with servlet generated graphics, etc. where one request might modify the data used by others.
You would implement it just like any other synchronization.
Otherwise, each user has a unique session and there is no need to synchronize.
Synchronizing does of course have overhead, but it is small compared to all of the other delays in servlets, especially in Java 1.4 - thats the LAST place to look for performance increases.
Bill


Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: session synchronisation
 
Similar Threads
difference between join and synchronisation
is DataOutputStream synchronized or not?
How to store the database connection as an attribute?
Synchronise and Monitors
JMS-queue handling