aspose file tools*
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
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: 61180
    
  66

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