jQuery in Action, 3rd edition
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "Comparing context and session attributes" Watch "Comparing context and session attributes" New topic

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

Joined: Jan 10, 2002
Posts: 63844

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] [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!