That means the heart of the problem is that the flushing session is not attached to the main transaction and so is facing problems while flushing data.
Does that mean that the problem could be...
Type: Posts; User: spring007; Keyword(s):
That means the heart of the problem is that the flushing session is not attached to the main transaction and so is facing problems while flushing data.
Does that mean that the problem could be...
Thanks for your guidence.
I will make the DAO as singleton and see if I get the "stuck session problem" again.
Also, since I create a new DAO every time a thread is created, I am thinking that...
Actually, I need to create new DAOs because since each thread executes concurrently, I cannot mark DAOs as singleton else all threads are going to interfere with same bunch of code, we don't have...
Hi,
I implemented the ThreadExecutor service which is creating threads and scheduling them now. but Now I got a wierd problem. The hibernate session when trying to flush the data gets stuck. I...
Hi Everyone,
Currently I am facing a problem in which Hibernate session is executing an SQL query against the Oracle database but then hibernate never gets control back and looks as if waiting for...
Thanks a lot for your reply.
This will atleast help me in seperating what I should do from what I should not as far as handling hibernate session with transactions is concerned.
Hi,
I was going through the whole topic you had about starting a nested transaction in Spring framework. I am wondering if you have come across any "non-EJB" way to create a nested transaction...
Hi Alarmnummer,
I think this satisfies all of my requirements!!! Thanks a lot for mentioning this to me. One advantage is that since these APIs are JDK based rather
than third party, they can be...
Hi Alarmnummer,
Thanks for your reply.
My requirement is more of concurrent processing after some internal logic execution. It's actually like some file read logic (few rows at a time) and then...
Hello Everyone,
I am working on a problem where I need to create mulitiple threads and do some database updates using a DAO class using Spring.
Right now, the issue is that we have a huge data...
I am using Spring framework with Hibernate. Currently, I am getting the following exception.
-------------------------------------------------------
java.lang.IllegalStateException:...