0

I started with Teiid Spring Boot simple example from the following url: https://github.com/teiid/teiid-spring-boot/blob/master/docs/UserGuide.adoc

It uses two different data source to demonstrate Teiid Spring Boot's capability to interact and fetch data from multiple data sources. However, when I deployed my Teiid Spring Boot component it threw exceptions related to entityManagerFactory.

One of the sites that I came across related to Spring Boot says that in order to define and use multiple data sources I need to assign one as Primary and others as Secondary Data Source, as provide on this page: https://springframework.guru/how-to-configure-multiple-data-sources-in-a-spring-boot-application/

Can someone please confirm if my understanding is correct? If i am required to define Primary and Secondary Data Source?

I am using Spring Boot 2.2.4 and Teiid 1.3.0

Thank you! Purnima Das

1 Answers1

0

Have you seen this working example here with a single database? https://github.com/teiid/teiid-spring-boot/tree/master/samples/rdbms Teiid 1.3.0 This can be easily extended to have two databases. It only works with Spring Boot 2.1.6.RELEASE right now. No need to define the primary and secondary with this framework. Follow the example.

Ramesh Reddy
  • 554
  • 1
  • 3
  • 8