vijiguna wrote:
I am using a standalone hibernate connection for oracle connection(without spring) in my application for a process. i am opening new hibernate session for every cycle of the process and also close at the end of every cycle. But the session that were opened and closed for the process still have entry in the v$session table in Inactive status however the only session that is currently used is present in the active status. because these used sessions gets stagnated in the Inactive state even after closing them, after a limit i am not able to open any new session. In other words it also leads to total loss of DB connection. Is there any way to get rid of these Inactive sessions?
can anyone help me in clearing this problem?
Can you post the log please?
Try to call sessionFactory.getCurrentSession() instead of sessionFactory.openSession()