此内容没有您所选择的语言版本。

2.11. Additional Data Source Connection Properties


When using the driver class, various properties are derived from the URL. For the data source class, these properties are set using the following additional methods:
Expand
Table 2.3. Data Source Connection Properties
Method Name Type Description
setAlternateServers String Optional delimited list of host:port entries. Refer to Section 3.1, “Using Multiple Hosts” for more information.
setAdditionalProperties String Optional setting of properties that has the same format as the property string in a driver connection URL. Refer to Section 2.7, “Driver Connection URL Format”
setDatabaseName String The name of a virtual database (VDB) deployed to JBoss Data Virtualization.

Important

VDB names can contain version information; for example, myvdb.2. If such a name is used in the URL, this has the same effect as supplying a version=2 connection property. Note that if the VDB name contains version information, you cannot also use the version property in the same request.
setDatabaseVersion String The VDB version.
setDataSourceName String The name given to this data source
setPortNumber int The port number on which the server process is listening.
setServerName String The server hostname where the JBoss Data Virtualization runtime is installed.
setSecure boolean Secure connection. Flag to indicate to use SSL (mms) based connection between client and server.

Note

All the properties from URL Connection Properties can be used on DataSource using the AdditionalProperties setter method if the corresponding setter method is not already available. For example, you can add useCallingThread property as
<xa-datasource-property
name="AdditionalProperties">useCallingThread=false</xa-datasource-property>
Copy to Clipboard Toggle word wrap
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat