Trace:
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision Last revision Both sides next revision | ||
jvx:server:lco:appconfig [2018/02/01 22:40] admin created |
jvx:server:lco:appconfig [2020/06/26 12:22] cduncan |
||
---|---|---|---|
Line 1: | Line 1: | ||
~~NOTRANS~~ | ~~NOTRANS~~ | ||
- | ~~Title: Using server-side application configuration ~~ | + | ~~Title: Using Server-Side Application Configuration ~~ |
Sometimes you'll need additional settings for your application. Such a setting might be an additional database login or path to xsd files or mail server configuration (if not available in your database). | Sometimes you'll need additional settings for your application. Such a setting might be an additional database login or path to xsd files or mail server configuration (if not available in your database). | ||
- | There's no need to implement your own settings mechanism because JVx offers that out-of-the-box. | + | There's no need to implement your own settings mechanism because JVx offers that out of the box. |
- | Simply add your settings to the existing config.xml of your application, e.g.: | + | Simply add your settings to the [[jvx:common:setup:zones|existing config.xml]] of your application, e.g.: |
<file java config.xml> | <file java config.xml> | ||
Line 19: | Line 19: | ||
</file> | </file> | ||
- | Above config.xml contains an addition tag: schema. This tag is not a pre-configured tag, it's user-defined and not used from JVx. | + | Above config.xml contains an addition tag: schema. This tag is not a preconfigured tag, it's user-defined and not used from JVx. |
- | If you want to use the configured value in a life-cycle object or any other server-side object, simple add one line in your source code: | + | If you want to use the configured value in a life cycle object or any other server-side object, simple add one line in your source code: |
<file java> | <file java> |