Finally, i found the way to connect to different db sources.
in play, the api of jpa has no method named getJPAConfig("")
.
thers is another construction of em()
, em("")
.
so i access the dbs as:
EntityManager em0 = JPA.em("default");
EntityManager em1 = JPA.em("oracle");
that's it!