The difference between session and application

Hi gurus,Can anyone tell me what is the main differences between storing objects in application and sessions please?I will be very grateful for detailed differences.Thanks in advance:)Undergrad
[235 byte] By [jacobee] at [2007-9-26 1:21:51]
# 1

Application: All users share the same Object, and always get the same data. (similar to a Singleton Pattern). It will be created at the first request after Application start, and destroyed when the Application dies.

Session: A User gets its personalized version of an Object (he gets his 'own copy'), the Object can store User/Session-specific Data. It lasts for the period of a session, and keeps the data inbetween requests.

HaPe at 2007-6-29 0:58:04 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
For application Would the object be available to all till i stop the server?
b_babu at 2007-6-29 0:58:04 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
> For application> Would the object be available to all till i stop the> server?Yes, if you use <useBean ... scope="application" />
kblitz at 2007-6-29 0:58:04 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...