tags:

views:

240

answers:

1

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?

+2  A: 

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

Peter D