-2

what does context mean with respect to a web-container / a web application ?

what does Context cont = new InitialContext() initialize ?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
program-o-steve
  • 2,630
  • 15
  • 48
  • 67
  • 3
    If you want people to answer your questions, don't down vote their answers. Especially don't downvote them when the real problem is that your question is ridiculously vague. (Like it was before you editted it!!) – Stephen C May 24 '12 at 12:39
  • http://stackoverflow.com/questions/3918083/what-exactly-is-a-context-in-java and http://stackoverflow.com/questions/9734242/what-does-container-mean-in-the-context-of-programming might help. – Kazekage Gaara May 24 '12 at 12:40

1 Answers1

2

what does context mean with respect to a web-container / a webapplication ?

Usually a context will specify object mappings that are specific to your environment -- You may have a production context refer to a different jdbc configuration than a test context

what does Context cont = new InitialContext() initialize?

This will initialize an empty environment

Shawn
  • 7,235
  • 6
  • 33
  • 45