Scala library for reading tnsnames.ora
.
// Get the host, port, and SID of an address associated with our tns alias
val address: Option[TnsAddress] = TnsConfig("our_tns_alias").address
tns-config is available from Maven Central.
<dependency>
<groupId>org.codeswarm</groupId>
<artifactId>tns-config_2.10</artifactId>
<version>1.0</version>
</dependency>