Here’s my current connection string:
jdbc:amazon;moduleName=Foobar:oracle:thin:@ab1na-orasvr.db.foobar.com:42111:ab1na
But I need JDBC to access multiple databases. Can I simply append the second module name, separated by a semi-colon?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No I don’t think you can do this. You can do this with Hibernate though by creating multiple persistence units and creating entity managers based on the name you give each unit.
http://schuchert.wikispaces.com/JPA+Tutorial+1+-+Persistence+Unit