Questions tagged [transactional]

A transaction is a collection of operations performed on a database that are supposed to execute in one unit.

A transaction is a collection of operations performed on a database that are supposed to execute in one unit. This means that in case any of the operations fails the entire transaction fails and the status of the database is rolled back to the status prior to the transaction.

Apparently this tag is only useful for databases that actually support transactions.

770 questions
0
votes
0 answers

magento email on checkout

I am having a really strange problem with Magento. Suddenly no emails are sent on successfull checkout. It worked fine all the time, but I added an custom transactional email with 'new order' as base, but no emails are being send. Anyone experienced…
user2862473
0
votes
0 answers

Spring transaction annotation does not rollback

First, i suspect that it's my transaction configuration problem, so i create a simple spring-jdbc project with same transaction configuration, it works fine, then i check the log and find out may be it has something to do with "BeanPostProcessor",…
gozizibj
  • 285
  • 1
  • 5
  • 23
0
votes
2 answers

@Transactionnal + Hibernatetemplate Without saving dirty objects

I already search in forums, and i tried many things without succes. I want at the end on a transactional method, and only at the end, to save only hibernate object for whom i will use explicitly the Hibernate getHibernateTemplate().saveOrUpdate()…
Sbousfiha
  • 3
  • 4
0
votes
1 answer

Manage Hibernate transactions with Spring @Transactional

I face a problem with Spring3 and Hibernate4. I would like to use @Transactional to manage hibernate transactions. My JUnit test works with HSQDB. But when deployed on Tomcat, an exception occures. I tried many configurations, and the one which…
hadf
  • 279
  • 2
  • 5
  • 15
0
votes
0 answers

Duplicate creation of JPA entity

I'm quite confused, I'm trying to find out why I'm getting the creation of two Customers in the database with the following code with no luck. I tried to cut all the noise from the code, I hope I didn't erased anything important for the resolution…
Alexandre Jacob
  • 2,993
  • 3
  • 26
  • 36
0
votes
2 answers

Spring: Should I have @Transactional annotation in between?

I have 3 Spring Components calling first->second->third. If I only have @Transactional annotation on first and third will transaction be propagated properly? @Component public class C1 { @Autowired C2 c2; @Transactional public method1() { …
Artem
  • 7,275
  • 15
  • 57
  • 97
0
votes
1 answer

NServiceBus 4.03, when the queue doesnt exist, message is being sent to Transaction Dead Letter Q

I have Distributor/Worker model. Machine A - Distributor Machine B - Worker When the worker B is trying the send message to Distributor on a wrong Q name, its putting the message into Transactional Dead Letter Q. I was expecting the message to…
Miral
  • 5,968
  • 16
  • 57
  • 85
0
votes
2 answers

@Transactional propogate transactions only for a few exceptions

I am trying to make a transaction fail for all the unchecked exceptions except for a particular unchecked exception(in my case - DuplicateKeyException). How can I achieve this customization using @Transactional annotation of Spring framework ?…
Seema
  • 81
  • 8
0
votes
1 answer

Database operation in one go (one transcation)

I am working on a driver-booking management system. What I want to do is that I need to add a driver in booking table (which means assigning a booking to driver). Before that I need to check whether or not booking record has driver record associated…
Fahad Ishaque
  • 1,916
  • 1
  • 17
  • 21
0
votes
1 answer

spring @transactional preformance

lets say i have a service bean that has 2 methods: @Transactional(readonly=false) public void doSomething() @Transactional(readonly=true) public void doSomethingReadOnly() and 2 variations of a 3rd method: @Transactional(readonly=false) public…
Urbanleg
  • 6,252
  • 16
  • 76
  • 139
0
votes
0 answers

Quartz + Guice seems that transactions are skipped

I'am using Quartz Scheduler in my Guice application, for some very simple job which should call some web service, and based on the response update rows in the database. The problem I have here is that the transactions are skipped or not committed…
0
votes
2 answers

Spring Hibernate : Generic Dao addition causes - org.hibernate.TransactionException: nested transactions not supported

I have a layered architecture in my project. in order to prevent redundancy i created a very basic generic dao: public interface GenericDAO { public T getItemById(long id, Class c); public int save(T... objectsToSave); public…
Urbanleg
  • 6,252
  • 16
  • 76
  • 139
0
votes
1 answer

Rollback with catched RuntimeException

I clearly need some help about transaction roll back. I'm working on a Spring/JPA/Hibernate application. For me, RuntimeException even if they are catched, are rolling back the transaction. I deduce this with some tests (that I can't put here…
DessDess
  • 787
  • 1
  • 6
  • 20
0
votes
1 answer

Magento : Transactional email’s design getting distracted in outlook

I have created one transactional email. Its design is getting distracted in Outlook express. Can anybody suggest what’s going wrong ? Thanks in advance.
0
votes
2 answers

TransactionRequiredException in spring webmvc framework

It's many similar, but not the same issues, so I couldn't find a solution for this one. I have Spring + JPA(Hibernate) web-application. Context configuration (data-context.xml):
vdshb
  • 1,949
  • 2
  • 28
  • 40