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).

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.:

<?xml version="1.0" encoding="UTF-8"?>

The 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:

String sSchema = SessionContext.getCurrentSessionConfig().getProperty("/application/schema");
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information