aspose file tools
The moose likes Spring and the fly likes How Roo work on multiple data sources / JNDI Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Spring
Reply Bookmark "How Roo work on multiple data sources / JNDI" Watch "How Roo work on multiple data sources / JNDI" New topic
Author

How Roo work on multiple data sources / JNDI

Jenny Sun
Greenhorn

Joined: Sep 12, 2009
Posts: 11
Is there any difference or convenience that Roo can configure multiple data sources over Spring?

Thanks,
Jenny
Ken Rimple
author
Ranch Hand

Joined: Jul 20, 2010
Posts: 63

See this post on multiple databases from our book forum for some hints. It involves multiple transaction managers with jdbc sources, but I assume you can do the same thing with JNDI and one transaction manager provided the data sources are XA compatible. The biggest issue seems to be cross-database mappings, i am not sure off the cuff that you can do that so you may have to expose the keys and manually navigate those.


Ken Rimple
ken.rimple@gmail.com
Co-author, Manning Spring Roo in Action
I teach for Chariot Solutions (Spring, Maven, Hibernate, other courses). Schedule here
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How Roo work on multiple data sources / JNDI
 
Similar Threads
Local/Remote interface
doubt
Active record vs Sping-data jpa with Roo
how does Roo play with Maven?
Aqualogic switching datasources