Ramanuj Dev wrote:Hi all,
how can I save data in 2 different database like Oracle and Mysql simultaneously. I am using Spring 2.5 and Hibernate for my project.
Please help on this.
Thanks in advance
Ram
You will have to have two different dataSources. One for each database, and with Hibernate you will need two SessionFactory(s) one for each database, or 2 EntityManagerFactory(s) if you are using Hibernate just as your implementation of JPA. And unless you use JTA, then you will also need two TransactionManagers.
This will be true whether you are using Spring or not. It is about the database stuff.
Mark