3

I know, env-entry uses jndi and can be changed during runtime, where context-param cannot.

However, I can inject the values of both via @Resource, where type conversion is made automatically.

What is the difference (pros/cons) of using context-param or env-entry in web.xml.

nimo23
  • 5,170
  • 10
  • 46
  • 75
  • See this answer http://stackoverflow.com/questions/13196868/servlet-spec-context-param-vs-env-entry – Victor Jun 04 '13 at 21:03

0 Answers0