Announcement Announcement Module
Collapse
No announcement yet.
loading application context in tomcat Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • loading application context in tomcat

    i have an application that uses spring applicaiton context to get bean
    where should i put in tomcat so that its loaded whenever i start it?

  • #2
    When your application configuration xml files are defined in your web.xml they do not need to be configured in the servlet container. When Tomcat reads the web.xml on applicaiton start up it will start the application context based on the config files supplied in web.xml.

    Comment


    • #3
      Originally posted by yogarajkhanal View Post
      i have an application that uses spring applicaiton context to get bean
      where should i put in tomcat so that its loaded whenever i start it?
      See the section entitled "Convenient ApplicationContext instantiation for web applications" in the documentation.

      Comment

      Working...
      X