session « Test « JPA Q&A





1. How to hibernate Session while running the test cases    coderanch.com

I have a datasource (jdbc/hibernatespring) configured on the websphere server. I am able to get connection while executing the JSPs (which intenally calls the DAOs) and display the contents appropriately. I have written JUnit test cases for the DAOs and while executing the test cases, it could not be able to find the datasource and throws "NoInitialContextException" exception. In this scenario, ...

2. Session is disconnected when running tests    forum.hibernate.org

hi all, in my app i have created a Persistence layer which abstract the way i persist objects (i use both castor and hibernate). When running the persistence layer within a J2EE app (and in an application server) everything works perfectly fine.' When, however, i am running my tests 'off-line' in Maven, whenever i call a PersistenceManager operation, i got an ...