Configuration file: datasource.conf

This page describes configuration properties that can be set in a RET adapter’s datasource.conf file, which configures the adapter’s connection to the Caplin Platform.

For descriptions of a RET adapter’s TrAPI options, see Configuration file: trapi-connection.properties.

For descriptions of a RET adapter’s application options, see Configuration file: adapter.properties.

File location and format

When a RET adapter is deployed to a Caplin Deployment Framework, the adapter’s DataSource connection configuration file is available for editing at global_config/overrides/adapter/etc/datasource.conf.

The configuration file is in DataSource configuration file format.

Example: datasource.conf file for an LBN Adapter
##################################################
#
# JMX configuration
#
rmi-registry-port    ${THIS_LEG}028
rmi-client-port      ${THIS_LEG}038


##################################################
#
# Local DataSource peer-id
#
datasrc-id            ${THIS_LEG}026


##################################################
#
# Liberator peer
#
add-peer
        local-type              active|contrib
        remote-name             liberator${THIS_LEG}
        remote-id               ${LIBERATOR${THIS_LEG}_DATASRCID}
        addr                    ${LIBERATOR${THIS_LEG}_HOST}
        port                    ${LIBERATOR${THIS_LEG}_DATASRCPORT}
        heartbeat-time          15
        heartbeat-slack-time    5
end-peer

if "${FAILOVER}" == "ENABLED"
        add-peer
                local-type              active|contrib
                remote-name             liberator${OTHER_LEG}
                remote-id               ${LIBERATOR${OTHER_LEG}_DATASRCID}
                addr                    ${LIBERATOR${OTHER_LEG}_HOST}
                port                    ${LIBERATOR${OTHER_LEG}_DATASRCPORT}
                heartbeat-time          15
                heartbeat-slack-time    5
        end-peer
endif


##################################################
#
# Transformer peer
#
add-peer
        local-type              active|contrib
        remote-name             transformer${THIS_LEG}
        remote-id               ${TRANSFORMER${THIS_LEG}_DATASRCID}
        addr                    ${TRANSFORMER${THIS_LEG}_HOST}
        port                    ${TRANSFORMER${THIS_LEG}_DATASRCPORT}
        heartbeat-time          15
        heartbeat-slack-time    5
end-peer

if "${FAILOVER}" == "ENABLED"
        add-peer
                local-type              active|contrib
                remote-name             transformer${OTHER_LEG}
                remote-id               ${TRANSFORMER${OTHER_LEG}_DATASRCID}
                addr                    ${TRANSFORMER${OTHER_LEG}_HOST}
                port                    ${TRANSFORMER${OTHER_LEG}_DATASRCPORT}
                heartbeat-time          15
                heartbeat-slack-time    5
        end-peer
endif

##################################################
#
# Director peer
#
if "${DIRECTOR}" == "ENABLED"
	add-peer
	        local-type              active|contrib
	        remote-name             Director
	        addr                    ${DIRECTOR_HOST}
	        port                    ${DIRECTOR_DATASRCPORT}
	        heartbeat-time          15
	        heartbeat-slack-time    5
	end-peer
endif

Configuration properties

For detailed information on DataSource configuration properties, see DataSouce: configuration reference.