Hi,
We deployed a sample application in JBOSS to insert data & get data from the database.
There are to methods insert and get
In each method we are opening a session using
HibernateUtil.currentSession() and closing as
session.close() and HibernateUtil.closeSession()
First time executing fine, but when I execute the application in another browser ( that means two clients),
I am getting the following error.
Can you suggest what is the wrong?
Thanks,
Srinivas
-----------------------------------------------------------------------------------
12:37:16,466 INFO [STDOUT] Caused by: org.hibernate.SessionException: Session is closed
12:37:16,466 INFO [STDOUT] at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:131)
12:37:16,466 INFO [STDOUT] at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:49)
12:37:16,467 INFO [STDOUT] at org.hibernate.transaction.JDBCTransactionFactory.beginTransaction(JDBCTransactionFactory.java:24)
12:37:16,467 INFO [STDOUT] at org.hibernate.jdbc.JDBCContext.beginTransaction(JDBCContext.java:271)
12:37:16,467 INFO [STDOUT] at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1079)
-------------------------------------------------------------------------------------
|