From the DEBUG log, it looks like a tx never started. I think the issue is that Transactional is not enabled by default. You need to add tx:annotation-driven transaction-manager="transactionManager to your Spring xml file.
From the DEBUG log, it looks like a tx never started. I think the issue is that @Transactional is not enabled by default. You need to add to your Spring xml file.
Yes AngerClown, after adding annotation-driven tag transaction was initiated, but I had issue in my code also that particular method throws Exception due to which rollback is not triggered, once I changed my method commit and rollback works properly. Thanks guys for helping me out. – Danish May 26 at 10:40.
Not sure that this will solve the issue but something is definitely wrong with: This implies you are using JTA, as in delegate transaction handling to the application server. And also you have Which means you are using Spring transaction handling. I cannot see this bean being referenced anywhere explicitly, but probably this causes some problems.
Which way you want to go, delegate to appserver (are you running on a real appserver even or using Tomcat/Jetty? ), or let Spring handle the transactions? If the latter, remove the directive to JTA, of the other, remove the transactionManager definition (or change the class to JTA transaction manager).
Thanks abalogh for your response. I want Spring to handle transactions, I removed from configuration; after that tested above mentioned scenarios and still getting same results – Danish May 25 at 12:07 Can you post your stacktrace? – abalogh May 25 at 12:29 Posted the stacktrace.
Thanks – Danish May 25 at 13:04 It doesn't fix your issue, but I wanted to clarify that Spring will handle transactions with too, but that means you can't have a dataSource or another txManager definition in your xml file. – AngerClown May 25 at 15:44.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.