Permalink
Browse files

The onDestroy method will now call the BooksManager close method when…

…ever we are removing the web container.
  • Loading branch information...
1 parent c733519 commit 3fbdc000a48192aa96177747cfb18d8e2b03c935 @ccorsi committed Oct 7, 2010
Showing with 1 addition and 5 deletions.
  1. +1 −5 persistence/books/web/click/src/org/books/service/BooksConfigService.java
@@ -25,12 +25,8 @@
import javax.servlet.ServletContext;
-import org.apache.click.Page;
import org.apache.click.service.XmlConfigService;
import org.books.BooksManager;
-import org.books.page.BookPage;
-import org.books.page.GenderPage;
-import org.books.page.PersonPage;
/**
* @author Claudio Corsi
@@ -46,7 +42,7 @@ public void onDestroy() {
try {
this.getLogService().info("Calling the BookManager close method");
// Shutdown the books persistent layer by calling the BooksManager close method.
- // BooksManager.getInstance().close();
+ BooksManager.getInstance().close();
} finally {
// Always call the super class onDestroy method...
super.onDestroy();

0 comments on commit 3fbdc00

Please sign in to comment.