a new servletfilter, which controls the caching-values in the http-header.\ra new...
[mir.git] / source / mir / core / ui / plugin / HibernatePlugin.java
index 8007d28..d1784f4 100755 (executable)
@@ -44,7 +44,7 @@ import org.apache.struts.config.ModuleConfig;
 
 /**
  * HibernatePlugin
- * @version $Id: HibernatePlugin.java,v 1.1 2003/09/05 20:23:59 idfx Exp $
+ * @version $Id: HibernatePlugin.java,v 1.2 2003/09/18 21:42:17 idfx Exp $
  * @author idefix
  */
 public class HibernatePlugin implements PlugIn {
@@ -60,14 +60,14 @@ public class HibernatePlugin implements PlugIn {
         */
        public void init(ActionServlet actionServlet, ModuleConfig config)
                throws ServletException {
-                       try {
-                               SessionFactory factory = 
-                                       new Configuration().configure().buildSessionFactory();
-                               actionServlet.getServletContext()
-                                       .setAttribute(ServletConstants.SESSION_FACTORY, factory);
-                       } catch (HibernateException e) {
-                               throw new ServletException(e);
-                       }
+               try {
+                       SessionFactory factory = 
+                               new Configuration().configure().buildSessionFactory();
+                       actionServlet.getServletContext()
+                               .setAttribute(ServletConstants.SESSION_FACTORY, factory);
+               } catch (HibernateException e) {
+                       throw new ServletException(e);
+               }
        }
 
 }