rmutyala wrote:
If you are using the HibernateSession utility class with one session per thread one static sessionfactory, you can have one sessionfactory for schema and getSession can check the login condition.
well.. some typos here.. i was referring to the HibernateUtil class in
http://www.hibernate.org/42.html when I meant HibernateSession utility class. and read it as one static SessionFactory
per schema, one threadlocal session and threadlocal transaction per schema and let the getSession() method return the Session based on the runtime condition.
Hope this helps.