Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

When to use ApplicationContext start()

 
Kaspar Christenson
Greenhorn
Posts: 21
Mac Scala VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When would you ever use the ApplicationContext start() method?

I've seen some books do this:


Why would anyone do that?
If you use start() do you have to use close()?

I just don't see where start() would be used outside of the spring framework.
 
Ankit Garg
Sheriff
Posts: 9521
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't see any start method in ApplicationContext class. In which books have you seen it being used?
 
Kaspar Christenson
Greenhorn
Posts: 21
Mac Scala VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My mistake was to use ApplicationContext (I going from memory). Correct class in ClassPathXmlApplicationContext.

Pro Spring Integration
By: Dr. Mark Lui; Mario Gray; Andy Chan; Josh Long
Publisher: Apress
Pub. Date: March 24, 2011
Print ISBN: 978-1-4302-3345-9
Web ISBN: 1-4302-3345-1

In Chapter 5 and about 6 other places in the book.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic