Toggle navigation
Toggle navigation
This project
Loading...
Sign in
grogv3
/
grog-cubi
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Jean-Francois Leveque
2017-02-01 11:09:37 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
22a86882edc31062123ba512ef25a5d5bcfea430
22a86882
1 parent
788f1a75
Modification sources de données multiples.
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
src/main/java/org/legrog/configuration/JpaConfiguration.java
src/main/webapp/WEB-INF/resources.xml
src/main/java/org/legrog/configuration/JpaConfiguration.java
View file @
22a8688
...
...
@@ -10,7 +10,7 @@ public class JpaConfiguration {
@Produces
@RequestScoped
@PersistenceContext
(
unitName
=
"
v3
-pu"
)
@PersistenceContext
(
unitName
=
"
development
-pu"
)
public
EntityManager
entityManager
;
}
...
...
src/main/webapp/WEB-INF/resources.xml
View file @
22a8688
<?xml version="1.0"?>
<tomee>
<Resource
id=
"
book
Database"
type=
"javax.sql.DataSource"
>
<Resource
id=
"
H2
Database"
type=
"javax.sql.DataSource"
>
JdbcDriver = org.h2.Driver
JdbcUrl = jdbc:h2:mem:test
UserName = sa
JtaManaged= true
</Resource>
<Resource
id=
"
v3
Database"
type=
"javax.sql.DataSource"
>
<Resource
id=
"
migration
Database"
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
...
...
Please
register
or
login
to post a comment