0
votes

I have configured 2 different data souces in my Teiid Spring Boot Application and have been following this example:

https://github.com/teiid/teiid-spring-boot/blob/master/docs/UserGuide.adoc

This example demonstrates a union query from Customer table from two different data sources, however, when i run my application the customerrepository retrieves records only from one database and not from the other.

I have uploaded my source code on github:

https://github.com/purnimadas27/TeiidExample1/tree/master/TeiidSpringBootPrj5

Can someone suggest why is my union query not retrieving results as expected, it appears that the customerrepository is bound to only one of the datasource and is retrieving results only from one datasource and it also appears that @SelectQuery is not being considered at all.

Any help is greatly appreciated, thank you!

1

1 Answers

0
votes

See this full example here with updated document

Updated: I could not figure out root issue is, this was not occurring with latest code, so wrote a new example with 1.3.1 release of the Teiid Spring Boot. This should work.