hi
is there a way to support many database with spring without using orm?
some client use mysql and some other will use oracle (not in the same time)?
how to manage dao to support many database?
thanks
hi
is there a way to support many database with spring without using orm?
some client use mysql and some other will use oracle (not in the same time)?
how to manage dao to support many database?
thanks
Hello
Yes, with Spring's JdbcTemplate or MyBatis. You can use even bothis there a way to support many database with spring without using orm?
Yes, just create two differents dataSource beans.some client use mysql and some other will use oracle (not in the same time)?
check 11. Transaction Managementhow to manage dao to support many database?
but be aware, if you need both DB in the same Spring Transaction control, you must use JtaTransactionManager
- Manuel Jordan
Kill Your Pride, Share Your Knowledge With All
The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7
Blog
Technical Reviewer of Apress
- Pro SpringSource dm Server
- Spring Enterprise Recipes: A Problem-Solution Approach
- Spring Recipes: A Problem-Solution Approach, 2nd Edition
- Pro Spring Integration
- Pro Spring Batch
- Pro Spring 3
- Pro Spring MVC: With Web Flow
- Pro Spring Security