AbstractRoutingDataSource « JPA « Spring Q&A





1. How to make safe frequent DataSource switches for AbstractRoutingDataSource?    stackoverflow.com

I implemented Dynamic DataSource Routing for Spring+Hibernate according to this article. I have several databases with same structure and I need to select which db will run each ...

2. Spring @Async and the AbstractRoutingDataSource    stackoverflow.com

I've been using the AbstractRoutingDataSource with great success, but have hit upon an issue I can't resolve: when I kick off an asynchronous method using @Async, it loses the ...

3. Using AbstractRoutingDataSource to dynamically change the database schema/catalog    stackoverflow.com

According to this article, you can use the AbstractRoutingDataSource from Spring Framework to dynamically change the data source used by the application. However, the data sources used are defined by ...

4. MyBatis + AbstractRoutingDataSource    forum.springsource.org

Code: /** * Load an existing Po entity * */ @Transactional public Po getPoByPoNumber(String poNumber) { // Get Po by Po number from the default CMC Reporting data source Po po ...

5. Some ideas about AbstractRoutingDataSource    forum.springsource.org

Some ideas about AbstractRoutingDataSource Hello. I'm using AbstractRoutingDataSource for dynamic data source routing and i have a problem. My app have many identicals schemas. The schema is choosed using the URL ...

6. AbstractRoutingDataSource not routing when used with Hibernate (sample attached)    forum.springsource.org

AbstractRoutingDataSource not routing when used with Hibernate (sample attached) I'm trying to do some simple physical sharding using AbstractRoutingDataSource along with Hibernate. I don't want to use Hibernate Shards, since we ...

7. Help to understand some concepts of AbstractRoutingDataSource    forum.springsource.org

Help to understand some concepts of AbstractRoutingDataSource I need som help understanding AbstractRoutingDataSource. There are some aspects of my AbstractRoutingDataSource I do not understand. This is my recipe: 1: Created an ...

8. Problem compiling AbstractRoutingDataSource implementation    forum.springsource.org

Problem compiling AbstractRoutingDataSource implementation I am not sure if this is a Maven2 issue or an Spring issue, but since my problem occours when compiling my implementation of the AbstractRoutingDataSource I ...

9. Routing data sources with AbstractRoutingDataSource    forum.springsource.org

Routing data sources with AbstractRoutingDataSource Hi, I've implemented horizontal partioning with Spring's AbstractRoutingDataSource and hibernate. I've used this article as reference: http://blog.springsource.com/main/20...ource-routing/ Although my code is running I've ran into some ...





10. JPA and AbstractRoutingDataSource?    forum.springsource.org

Is it possible to use JPA annotations and AbstractRoutingDataSource together. My application will spin up a new catalog for each new customer site. I'd like to use JPA annotations, but I ...

11. Can I call setTargetDataSources on an AbstractRoutingDataSource after initialisation?    forum.springsource.org

The subject says it all really. I have a bean that is autowired to a custom AbstractRoutingDataSource which, post construction, creates a Map of Strings to DataSources and does a setTargetDataSources ...

12. AbstractRoutingDataSource for failover?    forum.springsource.org

AbstractRoutingDataSource for failover? We have a situation where our data is loaded into one (Oracle) database instance, and then is streamed to another. In the event that the main instance fails, ...

13. AbstractRoutingDataSource and Potential Thread safety issue    forum.springsource.org

AbstractRoutingDataSource and Potential Thread safety issue Since the EntityManagerFactory is shared across EntityManagers, if you are calling setDataSource() on the EMF, then you could have a potential threading issue. The scenario ...

14. AbstractRoutingDataSource and Potential Thread safety issue    forum.springsource.org

AbstractRoutingDataSource and Potential Thread safety issue Since the EntityManagerFactory is shared across EntityManagers, if you are calling setDataSource() on the EMF, then you could have a potential threading issue. The scenario ...

15. AbstractRoutingDataSource and AbstractTransactionalSpringContextTests    forum.springsource.org

Feb 26th, 2010, 10:52 AM #1 jsimone View Profile View Forum Posts Private Message Junior Member Join Date Sep 2008 Posts 3 AbstractRoutingDataSource and AbstractTransactionalSpringContextTests We are using an AbstractRoutingDataSource implementation ...

16. Database routing using AbstractRoutingDataSource    forum.springsource.org

Database routing using AbstractRoutingDataSource Hi all, I'm currently working with an ASP solution based on Spring where we have a requirement to work towards several databases (through Hibernate). One for each ...





17. Problem using AbstractRoutingDataSource and JdbcCursorItemReader    forum.springsource.org

Problem using AbstractRoutingDataSource and JdbcCursorItemReader I am not sure this is an issue with my spring batch config or my data source config but I am getting an exception when trying ...

18. AbstractRoutingDataSource - Multitenant    forum.springsource.org

Hi, I am trying to setup a webapplication using spring mvc, spring security and hibernate/JPA for multiple customers using multiple data sources. I looked at AbstractRoutingDataSource It looks like I can ...