val jdbcHostname =
"login.salesforce.com"
val jdbcSecurityToken =
"Your Security Token"
// Create the JDBC URL without passing in the user and password parameters.
val jdbcUrl = s
"jdbc:datadirect:sforce://${jdbcHostname};SecurityToken=${jdbcSecurityToken}"
// Create a Properties() object to hold the parameters.
import java.util.Properties
val connectionProperties =
new
Properties()
connectionProperties.put(
"user"
,
"Your username"
)
connectionProperties.put(
"password"
,
"Your password"
)