When using JDBC I like the new DataSource-way to establish the connection. Further I like the isolated set-Methods for the properties like setUser, setPassword, setDriverType, setServerName, setNetworkProtocol, setDatabaseName, setPortNumber and so on.
The question is (esp. for the use with Oracle), if there is a way to set up LoadBalancing with two or more servers without specifying the URL directly with


for example.

  • Maybe someone could add the tags datasource, load-balancing and connection? Thanks. – Bastian Ebeling Feb 15 '13 at 11:31
  • 1
    It's easier to do it using tnsnames.ora, but that doesn't answer your question ;) – Philᵀᴹ Feb 15 '13 at 11:47

Thin client can also use alias defined in tnsnames.ora. In java call set -Doracle.net.tns_admin=...

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.