Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Is ServletContext a singleton?  RSS feed

 
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!