David Newcomb - 2007-07-25

Logged In: YES
user_id=762346
Originator: NO

I too need multiple hosts.
Having read and rewritten a lot of the Elvyx driver for my own needs, I realised that .properties files is *not* the way forward. The jdbc spec defines a string that can accommodate all those parameters, so that there is no need for any properties files.
You have to specify this 'spec' in your application anyway so why not make it a bit more useful?

The Elvyx Driver will need a couple of mods which won't take long. The current implementation does not support DataSources (properly) which will help achieve what you are looking for.

The jdbc uri may look like these:

jdbc:elvyx:real=oracle:thin:@localhost:1521:myOtherDB,realdriver=oracle.jdbc.driver.OracleDriver,ehost=localhost,eport=4449,version=1.0.23.1

or

jdbc:elvyx:real=mysql://mymachine/mydb?user=me&pass=you,realdriver=com.mysql.jdbc.MySQLDriver,ehost=localhost,eport=4449,version=1.0.23.1