March 2018
Intermediate to advanced
310 pages
7h 10m
English
As an another YAML config example, we are going to show you how to configure the datasources with the YAML configuration file. Let's take a look:
The example is very similar to the XML configuration example. We have to exchange the configuration file for its YAML equivalent:
swarm: datasources: data-sources: CatalogDS: driver-name: h2 connection-url: jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE user-name: sa password: sa jdbc-drivers: h2: driver-class-name: org.h2.Driver xa-datasource-name: org.h2.jdbcx.JdbcDataSource driver-module-name: com.h2database.h2
And also need to make the Main class use it (1):
package org.packt.swarm.petstore.catalog ...Read now
Unlock full access