/[projects]/android/PicturePosterService/src/dk/thoerup/pictureposterservice/HibernateListener.java
ViewVC logotype

Annotation of /android/PicturePosterService/src/dk/thoerup/pictureposterservice/HibernateListener.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 602 - (hide annotations) (download)
Sun Feb 21 20:31:20 2010 UTC (14 years, 3 months ago) by torben
File size: 513 byte(s)
Very basic picture service
1 torben 602 package dk.thoerup.pictureposterservice;
2    
3     import javax.servlet.ServletContextEvent;
4     import javax.servlet.ServletContextListener;
5    
6     /**
7     * Application Lifecycle Listener implementation class HibernateListener
8     *
9     */
10     public class HibernateListener implements ServletContextListener {
11    
12    
13    
14     public void contextInitialized(ServletContextEvent sce) {
15     HibernateUtil.getSessionFactory(); //force init of session factory on context start
16     }
17    
18     public void contextDestroyed(ServletContextEvent sce) {
19    
20     }
21    
22     }

  ViewVC Help
Powered by ViewVC 1.1.20