session 1 « Transaction « Spring Q&A





1. Illegal attempt to associate a collection with two open sessions    stackoverflow.com

I'm trying to add a pojo to a collection in another pojo. I'm sure I'm making a really stupid mistake somewhere along the lines but I can't figure out how to ...

2. Hibernate template close transaction    stackoverflow.com

I have next working code:

 Session session = null;

 try {

  SessionFactory sessionFactory = new Configuration().configure()
    .buildSessionFactory();
  session = sessionFactory.openSession();

  String id = (String) FacesContext.getCurrentInstance()
 ...

3. How does transaction propagation work when using Open Session In View?    stackoverflow.com

I'm really confused about transaction propagation in Spring with Hibernate. I use Spring @Transactional annotations on my service layer methods. Some are marked as 'read-only=true'. If one of my read-only service ...

4. Hibernate session problem for transactions    stackoverflow.com

I am new to hibernate and trying integrate hibernate with an existing spring based application. I configured session factory and transaction manager, transaction proxy template. I am also using Quartz scheduler in this ...

5. Spring transaction demarcation causes new Hibernate session despite use of OSIV    stackoverflow.com

I'm using Hibernate with OpenSessionInViewInterceptor so that a single Hibernate session will be used for the entire HTTP request (or so I wish). The problem is that Spring-configured transaction boundaries are ...

6. How to integrate spring with hibernate session and transaction management?    stackoverflow.com

I am a beginner in both hibernate and spring. I have understood about the hibernate transaction demarcation (at least I think so). But after coding a few method like this:

sessionFactory.getCurrentSession().beginTransaction();
//do something ...

7. What is wrong with my Spring Hibernate Transaction Management Configuration?    stackoverflow.com

I am using Spring 2.5.5. Hibernate3.2. and MySQL.
I was getting:

org.hibernate.LazyInitializationException: could not initialize proxy - no Session
 at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:57)
 at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:111)
 at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:150)
 at beans.Country$$EnhancerByCGLIB$$e757f40e.getStringId(<generated>)
 at beans.Address.getCountryStringId(Address.java:137)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at ...

8. hibernate jpa: Session is closed!    stackoverflow.com

Application is based on Spring 2.5.5 and hibernate 3.2.0 GA. I have the following method in my DAO that gets MessageEntities attached to the specified User:

public MessageEntity findByUserId(int userId) {
   ...

9. In new Hibernate Session created in event can't see entity saved in different session (but same transaction)    stackoverflow.com

I am using Hibernate's PreInsertEventListener to do auditing of fields of my table. I am also using Spring to create my SessionFactory and TransactionManager. Some other detail that might be relevant:
OpenSessionInViewFilter is used
Hibernate ...





10. hibernate/spring is trying to insert rather than save (record already exists in db) after the previous transaction failed    stackoverflow.com

I have a batch interface class that creates a hibernate Session like this:

Session session = SessionFactoryUtils.getSession(sessionFactory, true);
TransactionSynchronizationManager.bindResource(sessionFactory, new SessionHolder(session));
Then it calls a service to get a list of objects from the ...

11. Spring Transaction session problem(Could not synchronize database state with session)    stackoverflow.com

i am using hibernate template to save date.after data is saved,while leaving the hibernate .i am getting this exception...if i dont instantiate this persistent bean in the spring context file than ...

12. Spring Hibernate & Console App Integration    stackoverflow.com

Hi I'm looking for a sample Spring Hibernate Console App. I've been reading the Spring Documentation but there's too much technical detail. I understand that 1 Hibernate Session is roughly equivalent to ...

13. See all DML changes in Oracle session before committing    stackoverflow.com

I'm writing a test harness for an Oracle (10g) stored procedure. I'm planning to use a @Transactional test to run the stored procedure, so that the transaction will be rolled back ...

14. Does @Transactional open a Session and binds it?    stackoverflow.com

If I annotate a method that is executed in a thread with @Transactional, will a Session be created and bound to the thread?

15. Transaction management in a SOAP server implementation    stackoverflow.com

I have a standard jax-ws webservice set up that uses Spring for DI and Hibernate for persistence. Now in Spring you'd normally wrap your request in a custom filter and execute ...

16. understanding session.get vs session.load method in hibernate    stackoverflow.com

I am not able to understand the difference between load and get . the following piece of code doesn't work when i give session.load. It gives null pointer exception. But same ...





17. hibernate save and get using same session ,same transaction    stackoverflow.com

I have a scenario service layer is transactional, where i can only commit after done trandaction. i simplified it into like below.

begin transaction

for(loop){

getHibernateTemplate().save(object);


getHibernateTemplate().get(object_by_key); //cannot get object by object_by_key because "object" is ...

18. working with a map of hibernate session factories in a spring transaction system    stackoverflow.com

i am doing an upgrade to an existing system running postgres. the previous architect felt that the best way to get improved performance out of the system was after each year to ...

19. can a session factory be used detached from a spring transaction    stackoverflow.com

as part of this question: spring transactions in a spawned off thread one solution im thinking of is grabbing my session factory as a normal bean and using that outside of spring ...

20. Using two transaction managers and session factories with spring & hibernate annotations    stackoverflow.com

I have two transactions managers defined in applicationContext, referencing two completely different sessionFactories. I am attempting to use annotations with one of the transactionmanagers however it seems to be applying all ...

21. Transaction spanning multiple sessions    forum.springsource.org

Transaction spanning multiple sessions Hi I retrieve data from Oracle AQ. Oracle AQ adheres to the JMS interface. I am pulling messages from the Oracle AQ using a JMS template. I ...

22. Hibernate session and multiple transactions    forum.springsource.org

It seems that a new session is created at the beginning of each new transaction and closed at the end. Is it possible to share the same session if transactions are ...

23. Hibernate and session-per-application-transaction-pattern    forum.springsource.org

Hibernate and session-per-application-transaction-pattern Hello, is there a standard way to get the the session-per-application-transaction-pattern working with Hibernate and Spring declarative transaction management? I already know about OpenSessionInView(Filter|Interceptor) but these still commit ...

24. How to do standalone session inside an existing transaction?    forum.springsource.org

How to do standalone session inside an existing transaction? Hi, I'm new to Spring/Hibernate, yet managed to use it very fast, however I encountered the following problem. I'm writing a plugin ...

25. Hiberbate Spring transactional session    forum.springsource.org

Hiberbate Spring transactional session Hi, Hibernate:3.2.5.ga Spring 2.5.6.SEC02 (latest in 2.5.x) Updated the spring version after reading : https://jira.springsource.org/browse/SPR-5033 I am using Spring's AOP transaction management using HibernateTransactionManager. I have had ...

26. Trouble with Multiple Session Factories/Transaction Managers    forum.springsource.org

May 12th, 2011, 11:56 AM #1 geekingreen View Profile View Forum Posts Private Message Junior Member Join Date May 2011 Posts 1 Trouble with Multiple Session Factories/Transaction Managers I am trying ...

27. two transaction managers with two session factories    forum.springsource.org

two transaction managers with two session factories i have configured two transaction factories with two different datasources. I also have two different transaction managers(txmgr1 and txmgr2) configured and respective transaction advises(txadvice1 ...

28. Hibernate Session and Transaction Management    forum.springsource.org

Hibernate Session and Transaction Management Hello all, I am currently attempting to get hibernate and spring and blazeds for flex playing nicely at the moment. For some reason, my hibernate sessions ...

29. transaction management with two session factories    forum.springsource.org

transaction management with two session factories I have on e service FeedbackService. I have defined a pointcut on all methods of this service. this pointcut referes to a transaction advice (txAdvice) ...

30. Could not synchronize database state with session    forum.springsource.org

Dec 13th, 2004, 07:21 AM #1 shaby775 View Profile View Forum Posts Private Message Senior Member Join Date Aug 2004 Posts 105 Could not synchronize database state with session Hi, I ...

31. Invalidate another user's session just after admin locks a user    forum.springsource.org

Invalidate another user's session just after admin locks a user Hello, Could you please help me with my problem? We are using spring 3 and spring security. Our problem is that ...

32. How Sessions bound to JTA with Hibernate Tx mgr_lookup_class    forum.springsource.org

How Sessions bound to JTA with Hibernate Tx mgr_lookup_class If you're leveraging Hibernate's transaction manager_lookup_class to integrate with BEA's transaction manager (see below), does this leverage Spring's TransactionSynchronizationManager behind the scenes ...

33. Could not synchronize database state with session    forum.springsource.org

Could not synchronize database state with session I'm a bit mystified why I'm getting this error after a month of no problems with this class: SessionImpl.execute(2379) | Could not synchronize database ...

34. Hibernate session shared across transaction boundary.    forum.springsource.org

Mar 14th, 2005, 10:07 AM #1 robertpickering View Profile View Forum Posts Private Message Junior Member Join Date Mar 2005 Posts 1 Hibernate session shared across transaction boundary. I have got ...

35. JTA and multiple hibernate session factories    forum.springsource.org

JTA and multiple hibernate session factories Can someone tell me what is required in order to be able to use Spring with multiple hibernate session factories and jta. The issue is ...

36. removing a session factory from transaction management    forum.springsource.org

removing a session factory from transaction management I have a programatic transaction, in this transaction i want to have objects related to different session factory being stored normally (log msgs) and ...

37. why 'session-per-request' and not 'transaction-per-request'?    forum.springsource.org

I have a few questions about Hibernate that have been on my mind for a too long time. One of those questions is about transactions and sessions. So let me ask ...

38. Questions about hibernate sessions, OSIV and transactions    forum.springsource.org

Questions about hibernate sessions, OSIV and transactions Hi all, Apologies for this long post, but I am baffled as to how this all fits together Question1: When we create an OSIV ...

39. Spring JTA transaction and Hibernate Session close exception    forum.springsource.org

Aug 30th, 2005, 03:53 PM #1 lihui_pang View Profile View Forum Posts Private Message Junior Member Join Date Apr 2005 Posts 9 Spring JTA transaction and Hibernate Session close exception (Spring ...

40. transactions, annotations and session facade    forum.springsource.org

transactions, annotations and session facade hi, I was wondering if anyone has recommendations on using transaction annotations in session facade interfaces or classes. I was trying transaction annotations with JDK 1.5 ...

41. Problem with Hibernate sessions and JTA driven transactions    forum.springsource.org

Problem with Hibernate sessions and JTA driven transactions I have a 3rd party library that starts a transaction via JTA directly and then invokes a class of my own on two ...

42. hibernate session lifecycle/transaction    forum.springsource.org

I am a bit unclear as to how using the hibernate support in spring manages basic hibernate transactions. I am working with a project with one database and one sessionfactory. The ...

43. Confusion with Hibernate Session/Transaction life cycle    forum.springsource.org

Confusion with Hibernate Session/Transaction life cycle Hi: I have a confusion with session/transaction life cycle(with hibernate).For example, if there is a service method called doSomething, OneServiceImpl { doSomething() { oneDAO.doSomething(); oneDAO.doAnotherthing(); ...

44. config for keeping hibernate session open in transaction?    forum.springsource.org

config for keeping hibernate session open in transaction? Hi, I am trying to initialize a cache when the spring app starts up. I run into the classical org.hibernate.LazyInitializationException. My understanding is ...

45. simple Hibernate Session/Transaction AOP implementation    forum.springsource.org

simple Hibernate Session/Transaction AOP implementation I'm trying to implement AOP transaction management in Spring.NET using NHibernate, so I have started looked deep into the springframework java code. It is very complicated. ...

46. Transaction manager and session factories, what are the transaction boundaries?    forum.springsource.org

Transaction manager and session factories, what are the transaction boundaries? Recently my coworker and I have realized that after familiarilizing ourselves with Spring independently we've come up with two completely different ...

47. where TransactionProxyFactoryBean close session    forum.springsource.org

where TransactionProxyFactoryBean close session I am doing web app. i set the TransactionProxyFactoryBean StudentManager class. StudentManager will call the facade and facade will call the dao. I just want to know ...

48. working with multiple sessions / db connections in a single transaction    forum.springsource.org

working with multiple sessions / db connections in a single transaction I was wondering what the Spring way is for dooing this . I am dooing an import / data translation ...

49. Transaction & Session Sync Issue    forum.springsource.org

Jan 31st, 2006, 03:30 PM #1 mvohra View Profile View Forum Posts Private Message Junior Member Join Date Jan 2006 Posts 1 Transaction & Session Sync Issue I am using Hibernate ...

50. Committing Hibernate transaction during long session    forum.springsource.org

Committing Hibernate transaction during long session Folks, In our standalone application, we wrap a processing pipeline consisting of multiple stages in a ProxyFactoryBean and we use HibernateInterceptor to maintain an open ...

51. Could not open Hibernate Session for transaction; JDBC begin failed:    forum.springsource.org

Hi, getting this exception Could not open Hibernate Session for transaction; nested exception is org.hibernate.TransactionException: JDBC begin failed: periodically from a running prod. application. The app. is running Spring 1.2.5, Hibernate ...

52. Error - Could not synchronize database state with session    forum.springsource.org

Error - Could not synchronize database state with session Hello, When I try to update a column in a table, I get the error "Could not synchronize database state with session". ...

53. testing with mutiple hibernate sessions within one transaction    forum.springsource.org

testing with mutiple hibernate sessions within one transaction Hi, I am trying to integration test my service layer using AbstractTransactionalDataSourceSpringContextTests + HibernateTransactionManager (as I don't want any changes committed to the ...

54. Disappearing Hibernate Session upon transaction suspend    forum.springsource.org

Disappearing Hibernate Session upon transaction suspend Hello, I encounter the following exception (at the bottom) after several hours of successful operation of my application. Strangest thing is, that I cannot reproduce ...

55. session.lock with hibernate template    forum.springsource.org

56. TransactionProxyFactoryBean, Hibernate, Exception, Rollback, Invalid Session    forum.springsource.org

TransactionProxyFactoryBean, Hibernate, Exception, Rollback, Invalid Session Hi. I am using TransactionProxyFactoryBean to declaratively AOP my transactional business methods. When validation fails, the business tier throws an exception. This exception causes a ...

57. enableFilter with non-transactional Session    forum.springsource.org

enableFilter with non-transactional Session I'm trying to use Filters in a non-transactional Dao. My code looks like: this.getHibernateTemplate().enableFilter(FILTER_BY _UPLOADED_DATE) .setParameter("fromDate", fromDate).setParameter("toDate", toDate); final String queryName = FINDER_NAMED_QUERY; return this.getHibernateTemplate().executeFind(new HibernateCallback() { ...

58. Single session using @Transactional ?    forum.springsource.org

I am using spring2.0 + hibernate3.2 + tomcat5 (It is a spring mvc project). And in the data access methods I use @Transactional annotations to make use of getCurrentSession() of the ...

59. Session.save(), should it be used in JTA ??    forum.springsource.org

Aug 23rd, 2006, 10:44 AM #1 haishan View Profile View Forum Posts Private Message Junior Member Join Date Aug 2006 Posts 12 Session.save(), should it be used in JTA ?? Hi, ...

60. Executing stored proc in the same transaction with Hibernate's session    forum.springsource.org

Executing stored proc in the same transaction with Hibernate's session Good day, I use Hibernate with SQL Server 2000. Transaction manager is org.springframework.orm.hibernate3.HibernateTransa ctionManager. Hibernate Session is bound to thread. I ...

61. Hibernate: Where in the code get session/transaction and close it    forum.springsource.org

Hibernate: Where in the code get session/transaction and close it Hi, I'm using Hibernate to persist objects in my Spring application. I have my DAO-interfaces and the appropriate implementations. Now I ...

62. TransactionProxyFactoryBean and multiple sessions    forum.springsource.org

TransactionProxyFactoryBean and multiple sessions Hi all, I am wrapping a service layer class with TransactionProxyFactoryBean and applying a transaction to the method subscribeToService. This method relies on a couple of dao ...

63. How to manage Hibernate session upon transaction rollback    forum.springsource.org

How to manage Hibernate session upon transaction rollback i'm using a singleRequest OSIV filter with a wired transactional proxy bean configured to PROPAGATION_SUPPORTS for all methods. in the case of a ...

64. How to attach an existing session to a transaction ?    forum.springsource.org

How to attach an existing session to a transaction ? I need to attach an existing session object to a transaction , whenever I start a transaction.. is there a way ...

65. TransactionProxyFactoryBean and multiple sessions    forum.springsource.org

Dec 9th, 2006, 12:45 PM #1 sprhodes View Profile View Forum Posts Private Message Junior Member Join Date Jan 2006 Posts 14 TransactionProxyFactoryBean and multiple sessions Hi all, I'm having a ...

66. Transaction demarcation in Multiple Session Factory scenario    forum.springsource.org

Transaction demarcation in Multiple Session Factory scenario I'm wondering if this is a valid use case Mockup Hibernate calls Code: 1. session1 = getSessionForSessionFactory1() 2. session2 = getSessionForSessionFactory2() 3. TX1 = ...

67. How to use a new session per transaction with Hibernate    forum.springsource.org

How to use a new session per transaction with Hibernate Hi all, I have a batch process (started from the command line) which basically reads entries from a table (lets call ...

68. Spring Transaction with PROPAGARION_REQUIRES_NEW and Hibernate Session    forum.springsource.org

Spring Transaction with PROPAGARION_REQUIRES_NEW and Hibernate Session Hello all. I need to know how Spring manages the Hibernate session when the propagation option is PROPAGATION_REQUIRES_NEW. I think that a new Hibernate ...

69. TransactionManager and Hibernate session    forum.springsource.org

TransactionManager and Hibernate session Hi! These days I'm learning Hibernate on my own and now I want to combine with Spring. I have one class that has some methods that extends ...

70. AbstractFlushingEventListener - Could not synchronize database state with session    forum.springsource.org

Feb 12th, 2007, 07:19 AM #1 npintos View Profile View Forum Posts Private Message Member Join Date Apr 2006 Posts 37 AbstractFlushingEventListener - Could not synchronize database state with session Hi, ...

71. Problems with Session and transaction handling By AOP    forum.springsource.org

Problems with Session and transaction handling By AOP Version Desc JSF-Version: 1.1 Spring-Version: 1.2.8 spring-aop.ar Spring-Version: 1.2.4 Hibernate-version: 3.1.3 weblogic 8i We are handling transaction By custom interceptor (TransactionInterceptor) while creating ...

72. Multiple Hibernate Sessions under one JTA Transaction    forum.springsource.org

Multiple Hibernate Sessions under one JTA Transaction I've been trying to get a unique situation to work, but for the life of me I can't. I am running JBoss 4.2.5, Spring ...

73. Hibernate Session after a rollback.    forum.springsource.org

Hibernate Session after a rollback. Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailin...owToAskForHelp Hibernate version:3.1.1 Spring version: 2.0 rc2 Hi all, I have a problem regarding the using of the same ...

74. Single Session multiple transaction Hibernate/Spring    forum.springsource.org

Single Session multiple transaction Hibernate/Spring Despite trying to understand the issue for a long time, I am still not sure how running multiple transactions in a single session behave. A really ...

75. LazyInit while inside transaction/session    forum.springsource.org

LazyInit while inside transaction/session Hi, I'm experiencing a new (to me) behaviour while using Hibernate and Spring and wondered if anyone else knows what is going on. It's got me questioning ...

76. closing transaction without closing the session    forum.springsource.org

77. Could not synchronize database state with session    forum.springsource.org

Sep 7th, 2007, 01:20 AM #1 JohnDew View Profile View Forum Posts Private Message Member Join Date Jul 2007 Posts 94 Could not synchronize database state with session Hi all, I ...

78. Hibernate Transaction getCurrectSession Get Exception No Hibernate session bound...    forum.springsource.org

Hibernate Transaction getCurrectSession Get Exception No Hibernate session bound... Hi I am having the same problem many other people on this forums are having, but i can't to solve mine. I ...

79. How long does session lock a connection    forum.springsource.org

Hi there, I have a web application (Tapestry / Spring / Hibernate) with "sesion in view" pattern implemented. My question is: is actual DB connection locked by a request thread for ...

80. managing session transactions...    forum.springsource.org

managing session transactions... After one transaction method is executed, is the session closed? If a web request is made will the Spring transaction only be active for that request/response; or will ...

81. "Nested" transaction within Open Session In View    forum.springsource.org

"Nested" transaction within Open Session In View Hi all, I'm building a web app using J2EE1.4, Spring 1.2.8, Hibernate 3.2.0 and Oracle10g. To access the db I use DAO classes that ...

82. Extending Annotation driven transactions to support multiple session factories    forum.springsource.org

Extending Annotation driven transactions to support multiple session factories I want to extend the annotated transaction support to support multiple session factories/databases (in a non-XA fashion). I would like to be ...

83. How to retrieve Session within @Transactional    forum.springsource.org

How to retrieve Session within @Transactional When using Spring 2.5 and Hibernate 3.2x with the @Transactional annotation, I understand that a session is opened upon entering the annotated method. Now when ...

84. @Transactional - Sharing a session across transaction problem    forum.springsource.org

@Transactional - Sharing a session across transaction problem I am trying to build a RCP application using SWT for the GUI layer and Hibernate for the persistency layer. I am trying ...

85. Hibernate Session Management WITHOUT Transaction Management    forum.springsource.org

Hibernate Session Management WITHOUT Transaction Management We are currently using Hibernate with xml driven declarative transactions for our data access. For our find and findAll method we are currently using read-only ...

86. Transaction/Session question    forum.springsource.org

Hello, I'm using a TransactionProxyFactoryBean to manage my transactions and I have a question about what's in my log file. Specifically this part --> be sure to close the session to ...

87. How to prevent closing hibernate session when transaction rollback?    forum.springsource.org

How to prevent closing hibernate session when transaction rollback? I use Spring 2.0.6 and Hibernate 3.2 and OpenSessionInViewFilter with singleSession=true. I found when a transaction rollback, HibernateTransactionManager closes the hibernate session. ...

88. how to make transaction / hibernate session always available    forum.springsource.org

how to make transaction / hibernate session always available I have some service methods annotated with @Transactional. As long as Spring creates these service beans, they seem to participate in transactions, ...

89. Transactions & Sessions when using Spring, its Hibernate Support features, and JSF    forum.springsource.org

Transactions & Sessions when using Spring, its Hibernate Support features, and JSF Hello, I've searched this forum but I couldn't find answers for this specific question. I apologize in advance if ...

90. Stateless Session Support using Transactional Annotations?    forum.springsource.org

Is there any support in spring for hibernate's stateless session? I need to create a stateless session for my DAO's to use but I can't see how to do that. Calling ...

91. Spring Transaction Management + Hibernate Stateless Session    forum.springsource.org

Hi, I'm trying coax spring's transaction management (currently I'm using TransactionProxyFactoryBeans) into using a hibernate StatelessSession. There is a note in the Spring 2.5.5 changelog that says: * documented use of ...

92. Hibernate Sessions/Transactions    forum.springsource.org

Hibernate Sessions/Transactions I've looked at the documentation and searched on the forum...there are lots of results but i can't solve my problem. I've started a web application (spring+hibernate)...the main config is ...

93. Transactional yet not Session    forum.springsource.org

Code: Transactional(readOnly = true, propagation = Propagation.REQUIRES_NEW) public UserSummary getUserSummary(Integer id) { System.out.println("should have a transaction now - but I don't"); User user = userDao.load(id); System.out.println("should still have a transaction now ...

94. @Transactional does not work for new sessions    forum.springsource.org

@Transactional does not work for new sessions Hello, I am using Spring 2.5.5, hibernate 3.2.5, hibernate-tools 3.2.0 and hibernate-annotations 3.3.0. I have the following problem: I am using AnnotationSessionFactoryBean, TransactionTemplate and ...

95. Could not open Hibernate Session for transaction    forum.springsource.org

Jan 8th, 2009, 03:38 AM #1 zywang0831 View Profile View Forum Posts Private Message Junior Member Join Date Jan 2009 Posts 1 Could not open Hibernate Session for transaction Hi! Is ...

96. Transactions with multiple method calls but not same session    forum.springsource.org

Transactions with multiple method calls but not same session I am using the @Transactional attribute on a business logic method like so: Code: @Transactional public void createMyObject(MyObject myObject) { //create MyObject ...

97. Could not synchronize database state with session    forum.springsource.org

Could not synchronize database state with session Please can anyone help with my issue... I had my web app up and running fine and users could signup to my site without ...

98. Hibernate: sessions, transactions, and dirty objects    forum.springsource.org

Hibernate: sessions, transactions, and dirty objects When you have only one session per request (OpenSessionInViewFilter default), if you modify an object before you start in a transaction, even if you don't ...

99. transaction annotaion and open view session filter    forum.springsource.org

transaction annotaion and open view session filter All my service classes are annotated with @transaction , with this i assuming any call to any method will start a transaction. for example ...

100. Can you help me fix this transaction/hibernate session problem with tests?    forum.springsource.org

Can you help me fix this transaction/hibernate session problem with tests? Hi, I am having a problem using Spring's test framework with Hibernate sessions. Because of the way spring's transactions work, ...