Win a copy of Java Challengers this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

Can ServletContext lose an object stored in it

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I am running into a peculiar situation in the production environment. I have a web-based application running on IBM Websphere Application server (v6.1). At startup, I have a servlet which loads 4 specific objects (different classes) and stores them into the ServletContext.

The problem is that in past few days one of the object from the ServletContext is getting lost. This object is used in several JSP for creating a drop-down.Since this object is lost the drop down list is not created.
At each occurrence the same object is getting lost. This object is nothing but an array of a simple bean

As far as I know, the only time that ServletContext will lose data is when the application is shutdown.
Since this is happening only in production its difficult to track down the issue in Dev environment.

Have any of you come across such a situation?

Thanks,
Paresh Vernekar


 
Sheriff
Posts: 67528
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nope, never. But I've never used websphere.

I'll move this to the websphere forum to see if any other users have had similar issues.

 
paresh vernekar
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Bear, I agree with what you say...Let's see if I get some answers from the Websphere experts


Paresh Vernekar
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you please check whether you are removing the object from the application context by any change in the application?

Otherwise no. it will never be removed

Thanks,
Raj
reply
    Bookmark Topic Watch Topic
  • New Topic