DataSource « Transaction « Spring Q&A;

Home
Spring Q&A;
1.Annotation
2.AOP
3.Batch
4.Bean
5.Binding
6.Context
7.Core
8.Database
9.Development
10.EJB
11.Exception
12.File
13.GWT
14.Integration
15.Internationalization
16.Java EE
17.Job
18.JPA
19.JSF
20.Message
21.MVC
22.MVC Controller
23.Object
24.Remote
25.Roo
26.Security
27.Session
28.Spring Tool Suite
29.Struts
30.Test
31.Thread
32.Transaction
33.Web
34.Web Service
35.XML
Spring Q&A; » Transaction » DataSource 

1. Proper way to set up transactions in Spring for different data sources?    stackoverflow.com

I have an application which needs to connect to multiple databases. This is an administrative application which is basically used to manage entries in different databases - we do not need ...

2. spring multiple @transactional datasource    stackoverflow.com

    <bean id="transactionManager"
     class="org.springframework.orm.jpa.JpaTransactionManager">
     <property name="entityManagerFactory" ref="data.emf" />
    </bean>


<tx:annotation-driven transaction-manager="transactionManager" />

    <bean id="transactionManager2"
  ...

3. transactionmanager using same datasource    stackoverflow.com

(connected to db call abc)--->datasource1 ---> LocalSessionFactoryBean --->transactionManager1 (connected to db call abc)--->datasource1----->AnnotationSessionFactoryBean -->transactionManager2 the reason i have 2 sessionfactory is because one is used by 3rd party osworkflow library and ...

4. Configure spring datasource for hibernate and @Transactional    stackoverflow.com

at this moment i'm using DriverManagerDataSource with @Transactional annotation to manage transaction. But all transactions are very very slow, i think becouse data source open and close connection to db every ...

5. Multiple SessionFactories, multiple DataSources and Hibernate TransactionManager can take only one Sessionfactory    stackoverflow.com

I have @Transactional annotation in all my DAOs, but I can only define one TransactionManager that takes only one SessionFactory. I have one SessionFactory per customer, one DataSource per customer and ...

6. spring data source transaction manager not rolling back    stackoverflow.com

<!-- Data source definition -->
<bean id="dataSourceWebsube"
    class="org.springframework.jdbc.datasource.DriverManagerDataSource"
    p:driverClassName="${jdbc.driverClassName}" p:url="${jdbc.url.websube}"
    p:username="${jdbc.username.websube}"   p:password="${jdbc.password.websube}" />

<bean id="jdbcTemplateWebsube" class="org.springframework.jdbc.core.JdbcTemplate">
    <property name="dataSource" ref="dataSourceWebsube" ...

7. Datasource and transaction manager scope in Spring?    stackoverflow.com

In a spring application what should be the scope of datasource and transaction manager?As per my understanding both should be singleton. Is that correct?

8. spring multiple @transactional datasource    stackoverflow.com

I need to use two different dataSources/transactionManagers for different methods. The concept with @Transaction(value="txManagerABC") and a defined qualifier in the applicationContext for the transaction manager is perfect. (As seen in

9. Spring transaction multiple datasource    stackoverflow.com

I am having two datasource one for oracle and other for postgresql and both are used in same business method . How i can make this bussiness method transactional using spring ...

10. JTA 2PC - with multiple datasource    stackoverflow.com

I am new to JTA and i am trying to implement the JTA 2 pc .In business method I want if fun1 fails then fun3 should also but its not ...

11. oneToMany bidirectional does not work when datasource has transactions set as serializable    stackoverflow.com

i have a app that uses Spring,Struts, Hibernate and JPA. So i have two entities, Company and Location. Company is in oneToMany relation with Location, and location in ManyToOne to Company. Location ...

12. Enlisting Custom DataSource with JTa    forum.springsource.org

Enlisting Custom DataSource with JTa Hello, We are building an application which uses a legacy database schema on Oracle. Security is managed in database by using USER function of oracle sql, ...

13. Single Datasource + Multi JPA module jars + Transactional    forum.springsource.org

Single Datasource + Multi JPA module jars + Transactional Hi I need to configure my project to work with 2 persistence units, 1 transaction manager and 1 datasource. Ive looked all ...

14. JTA - XA Datasources    forum.springsource.org

There's not much of a reason to use an XA datsource if you don't actually need XA (two phase commit, basically) capabilities, and/or your environment (like the DB) doesn't support XA. ...

15. Spring Data Source Transaction Manager Not Rolling Back    forum.springsource.org

Spring Data Source Transaction Manager Not Rolling Back Code: