Search:

Type: Posts; User: mDennis10

Search: Search took 0.01 seconds.

  1. Re: How to access SessionFactory instance stored in SerlvetContextListener class

    Just saw the problem. didn't even realize that I made such a silly mistake I had this:


    public void contextDestroyed(ServletContextEvent arg0)
    {
    sessionFactory = new...
  2. Re: How to access SessionFactory instance stored in SerlvetContextListener class

    Ok I found a solution


    package org.LMS.Model;

    import javax.servlet.ServletContextEvent;
    import javax.servlet.ServletContextListener;
    import org.hibernate.SessionFactory;
    import...
  3. How to access SessionFactory instance stored in SerlvetContextListener class

    I want my hibernate SessionFactory instance to be loaded when my application is deployed so I created a class named HibernateContext.


    package org.LMS.Model;

    import...
Results 1 to 3 of 4