Connection property descriptions
- Last Updated: January 30, 2026
- 2 minute read
- DataDirect Connectors
- JDBC
- MongoDB 6.1
- Documentation
You can use connection properties to customize the driver for your
environment. This section organizes connection properties according to functionality. You can
use connection properties with either the JDBC DriverManager
or a JDBC data source. For a DriverManager connection, a
property is expressed as a key value pair and takes the form property=value.
For a data source connection, a property is expressed as a JDBC method and takes the form
setproperty(value).
- In a JDBC data source, string values must be enclosed in double quotation
marks, for example,
setUser("abc@defcorp.com"). - The data type listed for each connection property is the Java data type used for the property value in a JDBC data source.
- Connection property names are case-insensitive. For example,
Passwordis the same aspassword. - For connection properties that support string values, use the following
escape sequence to specify values containing leading or trailing spaces and
curly brackets:
{value}. For example:User={hello }orPassword={{hello}}.
The following tables describe the connection properties by functionality:
- Basic connection properties
- User ID and password connection properties
- Kerberos authentication properties
- LDAP authentication properties
- TLS/SSL encryption properties
- Mapping properties
- Proxy server properties
- Timeout properties
- Statement pooling properties
- Additional properties
Basic connection properties
The following table summarizes connection properties which are required to connect to a MongoDB data source.
| Property | Data Source Method | Default |
|---|---|---|
| DatabaseName |
|
No default value |
| PortNumber |
|
27107 |
| ServerName |
|
No default value |
User ID and password authentication connection properties
The following table summarizes connection properties used for user ID and password authentication.
| Property | Data Source Method | Default |
|---|---|---|
| AuthenticationDatabase |
|
No default value |
| AuthenticationMethod | getAuthenticationMethod()
|
UserIDPassword |
| Password | getPassword()
|
No default value |
| User | getUser()
|
No default value |
Kerberos authentication properties
The following table summarizes connection properties used for Kerberos authentication.
| Property | Data Source Method | Default |
|---|---|---|
| AuthenticationMethod | getAuthenticationMethod()
|
|
| ServicePrincipalName |
|
No default value |
| User | getUser()
|
No default value |
LDAP authentication properties
The following table summarizes connection properties used for LDAP authentication.
| Property | Data Source Method | Default |
|---|---|---|
| AuthenticationMethod | getAuthenticationMethod()
|
|
| Password | getPassword()
|
No default value |
| User | getUser()
|
No default value |
TLS/SSL encryption properties
The following table summarizes properties used for configuring TLS/SSL encryption.
| Property | Data Source Method | Default |
|---|---|---|
| CryptoProtocolVersion |
|
No default value |
| EncryptionMethod |
|
NoEncryption |
| HostNameInCertificate |
|
No default value |
| KeyPassword |
|
No default value |
| Keystore |
|
No default value |
| KeystorePassword |
|
No default value |
| Truststore |
|
No default value |
| TruststorePassword |
|
No default value |
| ValidateServerCertificate |
|
No default value |
Mapping properties
The following table summarizes connection properties involved in mapping the MongoDB data model to a SQL model.
| Property | Data Source Method | Default |
|---|---|---|
| ArrayNormalizationThreshold |
|
|
| CreateMap | getCreateMap()
|
NotExist |
| ColumnDiscoverySampleSize |
|
1000 |
| FlattenArrayBase |
|
|
| JSONColumns |
|
false |
| KeywordConflictSuffix |
|
No default value |
| LeadingUnderscoreReplacement |
|
None. When no value is specified, a leading underscore is used in identifiers. |
| LegacyVirtualKeys |
|
false |
| QualifyNormalizedNames |
|
No |
| RefreshSchema |
|
false |
| SchemaFormat |
|
Mixed |
| SchemaMap | getSchemaMap()
|
Default value depends on environment |
| SpecialCharBehavior |
|
Include |
| UppercaseIdentifiers |
|
true |
Proxy server properties
The following table summarizes proxy server connection properties.
| Property | Data Source Method | Default |
|---|---|---|
| ProxyHost |
|
No default value |
| ProxyPassword |
|
No default value |
| ProxyPort |
|
For HTTP URLs: For HTTPS URLs: |
| ProxyUser |
|
No default value |
Timeout properties
The following table summarizes timeout connection properties.
| Property | Data Source Method | Default |
|---|---|---|
| LoginTimeout | getLoginTimeout()
|
0 (no
timeout) |
Statement pooling properties
The following table summarizes statement pooling connection properties.
| Property | Data Source Method | Default |
|---|---|---|
| ImportStatementPool | getImportStatementPool()
|
No default value |
| MaxPooledStatements | getMaxPooledStatements()
|
0 |
| RegisterStatementPoolMonitorMBean | getRegisterStatementPoolMonitorMbean()
|
false
|
Additional properties
The following table summarizes additional connection properties.
| Property | Data Source Method | Default |
|---|---|---|
| EnableDNSLookup |
|
true |
| FetchSize | getFetchSize()
|
100 (rows) |
| InitializationString | getInitializationString()
|
No default value |
| LogConfigFile |
|
ddlogging.properties |
| LoginConfigName |
|
JDBC_DRIVER_01 |
| MinVarcharSize |
|
1 |
| NetworkMessageCompressors |
|
none |
| ReadOnly |
|
false |
| ReadPreference |
|
Primary |
| ReplicaSetName |
|
No default value |
| ResultMemorySize |
|
-1 |
| SpyAttributes | getSpyAttributes()
|
No default value |
| SchemaFilter |
|
No default value |
| StringTruncationMethodForWrites |
|
Error |
| TimestampFormat |
|
bigint |
| TransactionMode |
|
NoTransactions |
| VarcharThreshold |
|
4000 (characters) |