OpenSessionInViewFilter « Transaction « Spring Q&A





1. OpenSessionInViewFilter and custom spring DAO    stackoverflow.com

I've coded a custom generic DAO in this way:

public abstract class DAOImpl<T, PK extends Serializable> implements DAO<T, PK> {

private SessionFactory sessionFactory;
protected Logger log = null;

private Class<T> type;

public DAOImpl(Class<T> type) {
  ...

2. Transaction does not rollback In my OpenSessionInViewFilter    forum.springsource.org

Transaction does not rollback In my OpenSessionInViewFilter I use OpenSessionInView in my application. My goal is to rollback all change in database in one method if any exception occurs. Here is ...

3. OpenSessionInViewFilter/JTA/Hibernate/JBoss rollback problem    forum.springsource.org

OpenSessionInViewFilter/JTA/Hibernate/JBoss rollback problem Stack: Spring 1.2.1 Hibernate 3.0.5 JBoss 3.2.6 Using the org.springframework.transaction.jta.JtaTransaction Manager I can provide more details on our configuration if needed, but basically what I am seeing is ...

4. Retrying transactions with OpenSessionInViewFilter    forum.springsource.org

Retrying transactions with OpenSessionInViewFilter The Hibernate documentation recommends closing the Session after a HibernateException is thrown. That was also the recommendation of someone on the Hibernate team: http://forum.hibernate.org/viewtopic...246627#2246627 However, I noticed ...

5. Mysterious Rollback during OpenSessionInViewFilter    forum.springsource.org

Mysterious Rollback during OpenSessionInViewFilter Hello, I have a strange effect when I am using the OpenSessionInViewFilter to manage my hibernate session by spring during the http-request. There is always an additional ...

6. Hibernate OpenSessionInViewFilter and two transactions in the same Thread    forum.springsource.org

Hi guys. I have a doubt. I have the following situation: Web-app OpenSessionInViewFilter No transaction suspend (Using JtaTransactionManager) If, in the same thread, I start one transaction , do some updates ...

7. Transaction Management and OpenSessionInViewFilter    forum.springsource.org

Transaction Management and OpenSessionInViewFilter I am a newbie to spring so kindly correct me where ever i am wrong or i am missing a more elegant way of solving the problem. ...

8. Urgent: problem with OpenSessionInViewFilter + JTA transaction on Weblogic    forum.springsource.org

Urgent: problem with OpenSessionInViewFilter + JTA transaction on Weblogic I have encountered this problem: java.sql.SQLException: The transaction is no longer active - status: 'Committed' . No further JDBC access is allowed ...

9. Manage exceptions with Transactions & OpenSessionInViewFilter    forum.springsource.org

Manage exceptions with Transactions & OpenSessionInViewFilter Hi all, I use Spring 2.0.1, Hibernate 3.2.1, Tomcat 5.5 and Java 5. I have 3 layers : Web (Controllers,..) Domain (services & domain objects) ...





10. OpenSessionInViewFilter and Transactions    forum.springsource.org

OpenSessionInViewFilter and Transactions Hello, I'm using the patter OpenSessionInViewFilter in my JEE application with hibernate 3. In the web.xml, I use a filter: Code: hibernateFilter org.springframework.orm.hibernate3.support.OpenSessionInViewFilter ...

11. OpenSessionInViewFilter v OpenSessionInViewInterceptor v @Transactional    forum.springsource.org

OpenSessionInViewFilter v OpenSessionInViewInterceptor v @Transactional I have a servlet that calls and uses hibernate objects. It was throwing lazyinitializationexceptions and after a bit of reading I found there are 3 options: ...

12. OpenSessionInViewFilter issue when continuing after a rolled-back transaction    forum.springsource.org

OpenSessionInViewFilter issue when continuing after a rolled-back transaction In the javadoc of OpenSessionInViewFilter, there is such a statement: * A single session per request allows for most efficient first-level caching, * ...