I have 2 schemes in the database, and I want to create an application that uses data from the other schema. My question , can I use many database schemes' connection in one application? I know that each 'ear' file must have one connection. so how could I create an application with 2 connections?!
Asked
Active
Viewed 1,015 times
0
-
http://sscce.org/ please. – elyashiv Dec 12 '13 at 14:08
1 Answers
0
You need to use composite persistence unit for this purpose. But this is slightly tough to handle, specially when anyone is a beginner. Please check these links for help:
http://docs.oracle.com/cd/E28280_01/doc.1111/e25034/usingmultipledbs.htm

Sabuj Hassan
- 38,281
- 14
- 75
- 85