Jean-Francois Leveque

Modification sources de données multiples.

......@@ -10,7 +10,7 @@ public class JpaConfiguration {
@Produces
@RequestScoped
@PersistenceContext(unitName = "v3-pu")
@PersistenceContext(unitName = "development-pu")
public EntityManager entityManager;
}
......
<?xml version="1.0"?>
<tomee>
<Resource id="bookDatabase" type="javax.sql.DataSource">
<Resource id="H2Database" type="javax.sql.DataSource">
JdbcDriver = org.h2.Driver
JdbcUrl = jdbc:h2:mem:test
UserName = sa
JtaManaged= true
</Resource>
<Resource id="v3Database" type="javax.sql.DataSource">
<Resource id="migrationDatabase" type="javax.sql.DataSource">
JdbcDriver = com.mysql.jdbc.Driver
JdbcUrl = jdbc:mysql://localhost/v2?useSSL=false
JdbcUrl = jdbc:mysql://localhost/migration?useSSL=false
UserName = grogdev
password = grogdev
JtaManaged= true
......