title: sessionFactory is null in Grails service
body: <p>I have defined <code>def sessionFactory</code> in my class <code>class UpdateService.</code> However <code>sessionFactory</code> always remains <code>null</code>. (I am calling the service from a controller and a job)</p>
  
  <p>I need to clear Hibernate second level query cache from that service. What could be the problem?</p>