Trace:
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
jvx:code_snippets [2019/05/03 09:23] admin |
jvx:code_snippets [2019/05/03 09:24] admin [Detect Production mode] |
||
---|---|---|---|
Line 2368: | Line 2368: | ||
The marker will be used as postfix for the detection of datasource credentials. In the example, the postfix is **prod** and the **username_prod** will be used instead of **username**. If not tag with environment postfix is available, the standard tag will be used. | The marker will be used as postfix for the detection of datasource credentials. In the example, the postfix is **prod** and the **username_prod** will be used instead of **username**. If not tag with environment postfix is available, the standard tag will be used. | ||
+ | |||
+ | If you want to use the environment in your source code, simply call: | ||
+ | |||
+ | <file java> | ||
+ | String env = SessionContext.getCurrentSessionConfig().getProperty("/application/securitymanager/environment"); | ||
+ | </file> |