• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can ServletContext lose an object stored in it  RSS feed

 
paresh vernekar
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • 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


 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66306
152
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
Raj Chukka
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!