Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate

 
seenu jawaji
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, We are facing the below issue in our application, Please help to resolve the issue

org.hibernate.ResourceClosedException: This TransactionCoordinator has been closed
org.hibernate.engine.transaction.internal.TransactionCoordinatorImpl.getTransaction(TransactionCoordinatorImpl.java:186)


org.hibernate.engine.transaction.internal.TransactionCoordinatorImpl.isTransactionInProgress(TransactionCoordinatorImpl.java:162)
org.hibernate.internal.SessionImpl.afterOperation(SessionImpl.java:598)
org.hibernate.internal.SessionImpl.list(SessionImpl.java:1273)
org.hibernate.internal.QueryImpl.list(QueryImpl.java:101)
org.hibernate.internal.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:905)

We used Spring & Hibernate 4.0.

We used @Transcational in service layer & Used sessionFactory.getCurrentSession() for session management.

Spring default Transaction Propogation Level

We used JBOSS Data source explicitly
<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName">Databas</property>
</bean>



Thanks in Advance,
Sreeni.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic