Hello ! I would like to know : what exactly can I store in the application object ? (using application.setAttribute, for example) I have a Vector that is used by any user of my intranet site, can I store it in the application object so that anyone can access it ? Then : how long does such an application variable live ? Is it persistent ? Thanks ! Gaelle.
Gaelle.<br />'Never forget to abuse of good things'
posted 12 years ago
If you set application attributes they will be available until the application server is shutdown or until they are explicitly removed. They are NOT persistent i.e. they will not be there if the server is shutdown and restarted. I would advise caution when using them however as you need to take issues like server clustering and they could potentially take up large amounts of memeory.
Andy Bowes<br />SCJP, SCWCD<br />I like deadlines, I love the whoosing noise they make as they go flying past - Douglas Adams