aspose file tools*
The moose likes Other Application Frameworks and the fly likes How to create multiple database connection in Spring 3 and MyBatis 3? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "How to create multiple database connection in Spring 3 and MyBatis 3?" Watch "How to create multiple database connection in Spring 3 and MyBatis 3?" New topic
Author

How to create multiple database connection in Spring 3 and MyBatis 3?

Dinko Babat
Greenhorn

Joined: Apr 17, 2012
Posts: 1
How to make a multiple connection database in Spring 3 and MyBatis 3?
I need to connect MySQL and Oracle at once.
I can only connect to a single database, but when try to connect multiple database it got an error message.
The error message was


My appContext-database.xml


MainService


OraService


Or can you give an example source code to create a multiple connection?

Thanks in advance
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to create multiple database connection in Spring 3 and MyBatis 3?