Supporting multiple datasources

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Supporting multiple datasources

lebuitrago
Hello,

Could you please give a high level explanation/guidance on how we can go about adding support of multiple datasources?

For example, it can be something as crude as the following:

@Autowired
@Qualifier("myDataSource1")
private DataSource dataSource1;

@Autowired
@Qualifier("myDataSource2")
private DataSource dataSource2;

In a spring application I've created, I used @EnableJpaRepositories to feed it an entityManagerFactoryRef which was configured with the proper information of two repositories (datasources).

Is there a way to have the Citrus Framework support multiple datasources?

Your feedback is greatly appreciated!

Thank you very much.

Luis B.