HibernateUtil Dependency on hibernate.cf.xml creates problem in Spring 
application
----------------------------------------------------------------------------------

                 Key: CDV-521
                 URL: https://jira.terracotta.org/jira//browse/CDV-521
             Project: Community Development
          Issue Type: Bug
          Components: DSO:L1
    Affects Versions: 2.4.8
            Reporter: Nitin Jain
            Assignee: Issue Review Board


Refer to post http://forums.terracotta.org/forums/posts/list/568.page

HibernateUtil is written with assumption that hibernate.cfg.xml will be always 
available.  That  may not be the case in applications based on Spring, where 
hibernate configuration is defined via spring bean. It might fail even in those 
setup where SessionFactory is configured in a NamingService, a typical scenario 
in J2EE based applications.

Possible solution could be is to ask application developer provide an 
implementation of some interface that returns reference to session factory and 
if not configured use default implementation of HibernateUtil.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.terracotta.org/jira//secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
tc-dev mailing list
[email protected]
http://lists.terracotta.org/mailman/listinfo/tc-dev

Reply via email to