Helloo,
Id like to get your opinion for the best way to use hibernate spring and JSf web app,
I have 2 separate project, the first one, use hibernate and spring to manage DAO objects; the second is the JSF web app,
the application context file is stored on the hibernate project, so on the web app I just do like that:
Code:
MyBean = ServiceLocator.getMyBeanService().finById(id);
hollowing out, the hibernate session is not saved between 2 calls, It would be a bite slowly..
what's the best ay to share hibernate session and let the projects independents.?