This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Servlets and the fly likes Comparing context and session attributes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Comparing context and session attributes" Watch "Comparing context and session attributes" New topic
Author

Comparing context and session attributes

Siddharth Naik
Ranch Hand

Joined: Apr 09, 2006
Posts: 35
Can someone please help me compare servlet context (application) attributes and session attributes from performance point of view? Which is faster to retrieve and update at runtime? Where are they stored - in RAM or server hard disk?


Thanks<br />Sid
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63052
    
  69

Any performance difference would be completely negligible and should not be used as a basis on your decision. Use the context that makes the most sense.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Comparing context and session attributes
 
It's not a secret anymore!