• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

Difference between ApplicationContext vs WebApplicationContext

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Difference between ApplicationContext vs WebApplicationContext?
 
Author
Posts: 141
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ApplicationContext is an interface, an WebApplicationcontext one of the MANY implementations of an applicationcontext. If you want to find out more: https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/context/ApplicationContext.html
 
sat kadam
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ApplicationContext



Is that there will be only one ApplicationContext.
Any beans declared in ApplicationContext will be available to all applications deployed in spring container which is loaded with contextLoaderListener using param name and paramvalue.


WebApplicationContext

WebapplicationContext is associated with Dispatcher Servlet.

Does it means there can multiple dispatcherservlets and each one of them have their own webapplicationcontext but will they share only one applicationcontext
 
Ranch Hand
Posts: 93
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is only one DispatcherServlet.  It is sometimes referred to as the 'front controller' because it is invoked before your other controllers are.
 
reply
    Bookmark Topic Watch Topic
  • New Topic