Announcement Announcement Module
No announcement yet.
container Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • container

    In Spring , how many containers will be created ?
    For each module , does create one container ?

  • #2
    I think you are referring to contexts, not containers. The number of contexts and their parent/child relations depends on your type of application. For standalone (non-web) applications, one context is usually created by reading xml configuration in classpath. For web applications, if you are using Spring web mvc on top of Spring core, you will have an additional context tied to DispatcherServlet, which will be a child context of the core context (the one loaded through listener). If you also use Spring WS, you will have another context, also child of the core context, and so on...

    If you have any doubts, properly studying the reference documentation will help to clear them.