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
2 answers

SQL Server Replication - Is it possible between two different database models?

Two questions about SQL Server Replication: 1) Is it possible to configure transaction replication between a database A, and a database B (which has a small subset of tables of database A)? 2) Is it possible to configure transaction replication…
0
votes
1 answer

Parallelism Sources / material / papers / books / blogs?

I want to start learning about parallelism. Appropriately, Approaches to write programs which attain parallelism Issues in writing code for Multi-core Architecture Design Patterns in parallelism Program optimizations techniques for multi-core…
Abhishek Gupta
  • 6,465
  • 10
  • 50
  • 82
0
votes
1 answer

JMS Transactional Read

How could I achieve a transactional read (i.e. reading a JMS message as part of a transaction using MessageConsumer.receiveNoWait() and if the transaction fails the message should remain in the queue) ? I'm thinking of using JmsXA connectionFactory…
Sergiu
  • 2,502
  • 6
  • 35
  • 57
0
votes
1 answer

JPA/Hiberante don't generate join sql for FetchType.EAGER while Spring @Transactional annotated

I have a very wired problem. JPA/Hiberante don't generate join sql for FetchType.EAGER while Spring @Transactional annotated. But if I remove the @Transactional . Everything is fine. Here is the code: public class Item { @ManyToOne private…
0
votes
0 answers

Select query during transaction causes unsaved transient exception

Using EJB3 JPA with Spring/Hibernate and a Postgres database. I have a loop in which I am creating multiple instances of an Entity and persisting these using the EntityManager, within one (large) transaction. I want to be able to do a JPQL select…
DuncanKinnear
  • 4,563
  • 2
  • 34
  • 65
-1
votes
1 answer

JSF Handler Class with Transactional Methods

i have a Handler-Class for a JSF page, but when i annotate the class or any Method with @Transactional, i get this Error, when accessing any Property in the JSF page: Caused by: javax.el.PropertyNotFoundException: /index.xhtml @54,67…
wutzebaer
  • 14,365
  • 19
  • 99
  • 170
-1
votes
1 answer

Purchase an item along with saving the name of Supplier in SQL Server

I am using SQL Server 2014 in which i had designed the database to work on the General store management. I have to input the item along with its Supplier name its stock and Name of item. I have to execute three statements for this purpose, that is…
-1
votes
1 answer

Java Exception thrown despite there are try catch statement

I have a code in this format (java + spring): @Service public class mainService{ @Inject private ServiceA a; @Inject private ServiceB b; @Transactional public void methodTest{ try{ System.out.println("Start"); …
Think Tank
  • 43
  • 8
-1
votes
1 answer

Apache Camel: how to do an XA Transactional Manager in a route with an FTP-endpoint and database write access in it?

This is the route: from(jms:queue:xxx) ... .process(_write_in_db_) ... .to(ftp:yyy) I think I need a global XA Transactional Manager that covers the whole route and commits the changes in DB and Queue only after global commit. Unfortunatly I didn't…
Oli
  • 94
  • 1
  • 10
-1
votes
4 answers

Spring @transactional not auto rolling back during unchecked exception

Class A{ @transactional public Void methodA(){ methodB(); int i=10/0; } @transactional public void methodB(){ session.save(student) } Here there is an exception in methodA but it is not rolling back and inserting student data.why? }
-1
votes
1 answer

If and else block is executed during spring method annotated as Transactional

When I go to /confirmation-account link, in tomcat console I can see that if and else block is also executed. I can see: print from ColorConsoleHelper.getGreenLog("loginView") and from ColorConsoleHelper.getGreenLog("confirmationAccountView") This…
-1
votes
1 answer

Spring JPA transaction across methos

I have a spring repository with 2 methods, these 2 methods can be called separately as well as together also. I can make separate method invokation transactional using @Transactional annotation but how to make transaction across methods. Aim is to…
-1
votes
2 answers

Spring @Transactional works on Controller but Service has no effect

This is my web.xml contextConfigLocation classpath:spring/app-root.xml
Monkey
  • 3
  • 1
-1
votes
1 answer

How to ensure that each iteration of a HashMap is transactional

I have a method that delete values from a hashmap without deleting the keys. The structure of the HashMap is as follows, note Kennel and Dog are both Java Objects: Map> mapOfKennels; In my method below I am looping through all…
java123999
  • 6,974
  • 36
  • 77
  • 121
-1
votes
1 answer

JPA; Setting 'transaction-type' on annotation

I'm using Eclipselink's implementation of JPA and this is how I'm instantiating persistence context: @PicketLink @PersistenceContext(unitName = "txPersistUnit.security") private EntityManager txEmSec; this is persistence unit…
greengold
  • 1,184
  • 3
  • 18
  • 43
1 2 3
51
52