How to define Custom Datasource globally

Confluence User - 29 Jul, 2021

JDBC Binder Properties: Custom Datasource: (Oracle)
Do we have an option for following:
1. Define Custom Datasource for entire application rather than defining static data everytime.
2. Externalize the Custom Datasource so it can be configured to connect to different environments (DEV QA Prod)

customdatasource;jdbcbinder;database

1


29 Jul, 2021
confluenceUser
1
confluenceUser

Hi, you can make use of Environment Variables to set the desired values, then use the Hash Variable#EnvironmentVariableHashVariable in the corresponding binder properties. This way, you can manage the configuration properties just by editing the environment variables.

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print