• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is ServletContext a singleton?

Jacob Thomas
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does getServletContext() produce a singleton? Are there multiple instances of ServletContext objects?

I was going through some of the examples of servlet applications. Most of them doesn't seem to be using the concept of attributes and listeners. Could somebody please descibe some real world scenarios where they are used?

Thank you.
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!