For SeeOtherHostDB
implementation there are additional options:
c2s { 'cm-see-other-host' { 'db-url' = 'jdbc:mysqk://localhost/username?,password?' 'get-all-query-timeout' = '10' } }
db-url
- a JDBC connection URI which should be used to query redirect information; if not configured the defaultdataSource
will be used;get-host-query
- a SQL query which should return redirection hostname;get-all-data-query
- a SQL helper query which should return all redirection data from database;get-all-query-timeout
- allows to set timeout for executed queries.