readonly « Transaction « Spring Q&A





1. Spring - Transaction Readonly    stackoverflow.com

Just wanted your expert opinions on declarative transaction management for Spring. Here is my setup:

  1. DAO layer is plain old JDBC using Spring JdbcTemplate (No Hibernate etc)
  2. Service layer is POJO with declarative ...

2. Why "@Transactional" on a service method with "readOnly=true" on it's class?    forum.springsource.org

Why "@Transactional" on a service method with "readOnly=true" on it's class? Hello, I use Spring Data JPA and it works like a charm for me, reducing the amount of code significantly. ...

3. Hibernate Transaction Manager commiting a readonly transaction    forum.springsource.org

Sep 19th, 2011, 01:59 PM #1 jbodduna View Profile View Forum Posts Private Message Junior Member Join Date May 2009 Posts 3 Hibernate Transaction Manager commiting a readonly transaction I am ...

4. Possible bug in Spring 2.0rc1 .. transaction always commits even if marked readOnly    forum.springsource.org

Jul 4th, 2006, 05:31 AM #1 Colin Yates View Profile View Forum Posts Private Message Senior Member Join Date Aug 2004 Posts 1,905 Possible bug in Spring 2.0rc1 .. transaction always ...

5. Problem with readOnly transactions    forum.springsource.org

Problem with readOnly transactions Hello. I am trying to flush a HibernateTemplate , but I get: ERROR [http-9090-Processor25] ActionExceptionHandler.logException(147) | org.springframework.dao.InvalidDataAccessApiUsageE xception: Write operations are not allowed in read-only mode (FlushMode.NEVER) ...

6. Info Help: mark as ReadOnly transaction vs mark as no transaction vs no marking    forum.springsource.org

what is the difference if i mark a function to be a "read only transaction" and not marking it as a transaction or marking it as no-transaction. my understanding is that ...

7. Problems with @Transactional( readonly=true ) with jpaDaoSupport    forum.springsource.org

Problems with @Transactional( readonly=true ) with jpaDaoSupport Hi! I've got a simple dao which extends JpaDaoSupport (using openJpa). All is swell and it works - it only does a select - ...

8. @Transactional and readOnly    forum.springsource.org

Hello If I mark a method as: @Transactional(readOnly = true) and it calls another method marked as: @Transactional then the called method will continue to run in the existing transaction. However, ...

9. @transactional readOnly and propagation support    forum.springsource.org

Hi i have already posted this question but i came in mind and asked for people's opinion about making the adding Code: @transactional(readOnly=true, propagation=Propagation.SUPPORTS) to all my getters. The benefit is ...





10. Jpa transaction neeeds Propagation.SUPPORTS for readOnly=true?    forum.springsource.org

Jpa transaction neeeds Propagation.SUPPORTS for readOnly=true? I have the following that works fine in a jee jta transaction @Override @Transactional(readOnly = true) public Person getPerson(Long id) { return entityManager.find(Person.class, id); } ...

11. @Transactional(readOnly=true) does not set conn.setReadOnly(true)    forum.springsource.org

@Transactional(readOnly=true) does not set conn.setReadOnly(true) I need this so that I can use mysql replication driver. By setting conn.setReadOnly(true) the driver will read from a slave db ( configured in the ...

12. ReadOnly transactions - still transactions are created ?    forum.springsource.org

ReadOnly transactions - still transactions are created ? Hi All, I'm a little new to transactions but decided to attempt to do a little application tuning.. I'm using JPA / Hibernate ...

13. readonly in transaction    forum.springsource.org

What do you think? When marking a transaction as readonly hibernate ignores changes and doesn't do change detection on objects (or at least less eager as it normally does).

14. @Transactional and readOnly propagation    forum.springsource.org

@Transactional and readOnly propagation Hi, I'm using Spring, Hibernate, AspectJ and HibernateTransactionManager. I have a method tagged with @Transactional(readOnly=true) which calls another method which has @Transactional(readOnly=false). I was expecting that Hibernate ...

15. possible to enforce readonly transactions?    forum.springsource.org

possible to enforce readonly transactions? Hi, I'm using JPA with Hibernate 3, and Spring 2.5.6 for annotating transaction boundaries on my service objects (which then use my JPA DAOs). I've noticed ...

16. Unexpected update for readonly transaction    forum.springsource.org

Mar 5th, 2010, 12:24 PM #1 zhangyongjiang View Profile View Forum Posts Private Message Junior Member Join Date Oct 2008 Posts 3 Unexpected update for readonly transaction Hi, I use Spring ...





17. Why @Transactional(readOnly=true)?    forum.springsource.org

In some cases Spring can configure the underlying layer for better performance when a transaction is declared as read-only. When you use Hibernate for example, it sets the flush mode to ...

18. Update in ReadOnly Transaction    forum.springsource.org

Hi. say we have this method @Transactional(readOnly=true) public void someMethod(){ User user = (User) session.get(User.class, new Long(1)); user.setFirstName("someOtherName"); session.update(user); } Should the update query be generated because of the ...

19. Hibernate readOnly transactions    forum.springsource.org

Hibernate readOnly transactions I'm using amixture of Hibernate and JCA data sources in a project, and I'm looking at implementing some query functions to the Hibernate Data Source as read-only transactions. ...